From d36c1d29295020efb76bac21a443b6f9049802f3 Mon Sep 17 00:00:00 2001 From: TheCatLady <52870424+TheCatLady@users.noreply.github.com> Date: Sun, 26 Dec 2021 16:22:43 -0800 Subject: [PATCH] fix(lang): add missing string (#2370) --- src/components/IssueDetails/index.tsx | 5 ++++- src/i18n/locale/en.json | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/IssueDetails/index.tsx b/src/components/IssueDetails/index.tsx index ebdbabd8..73728c80 100644 --- a/src/components/IssueDetails/index.tsx +++ b/src/components/IssueDetails/index.tsx @@ -67,6 +67,7 @@ const messages = defineMessages({ toastissuedeletefailed: 'Something went wrong while deleting the issue.', nocomments: 'No comments.', unknownissuetype: 'Unknown', + commentplaceholder: 'Add a comment…', }); const isMovie = (movie: MovieDetails | TvDetails): movie is MovieDetails => { @@ -460,7 +461,9 @@ const IssueDetails: React.FC = () => { id="message" name="message" as="textarea" - placeholder="Respond with a comment..." + placeholder={intl.formatMessage( + messages.commentplaceholder + )} className="h-20" />
diff --git a/src/i18n/locale/en.json b/src/i18n/locale/en.json index f87026de..d20214f7 100644 --- a/src/i18n/locale/en.json +++ b/src/i18n/locale/en.json @@ -42,6 +42,7 @@ "components.IssueDetails.allseasons": "All Seasons", "components.IssueDetails.closeissue": "Close Issue", "components.IssueDetails.closeissueandcomment": "Close with Comment", + "components.IssueDetails.commentplaceholder": "Add a comment…", "components.IssueDetails.comments": "Comments", "components.IssueDetails.deleteissue": "Delete Issue", "components.IssueDetails.deleteissueconfirm": "Are you sure you want to delete this issue?",