diff options
-rw-r--r-- | public/_locales/en/messages.json | 4 | ||||
-rw-r--r-- | src/components/NoticeComponent.tsx | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/public/_locales/en/messages.json b/public/_locales/en/messages.json index 3223d2a4..9bae1e98 100644 --- a/public/_locales/en/messages.json +++ b/public/_locales/en/messages.json @@ -1235,5 +1235,9 @@ }, "allowScrollingToEdit": { "message": "Allow Scrolling To Edit Times" + }, + "NoticeTimeAfterSkip": { + "message": "{seconds}s", + "description": "This is used on the popup to show how much time left. It will look like \"5s\". The word {seconds} will be replaced, so keep it here. Translations should only change the \"s\"" } } diff --git a/src/components/NoticeComponent.tsx b/src/components/NoticeComponent.tsx index 3202c6ac..b710480e 100644 --- a/src/components/NoticeComponent.tsx +++ b/src/components/NoticeComponent.tsx @@ -195,7 +195,7 @@ class NoticeComponent extends React.Component<NoticeProps, NoticeState> { id={"skipNoticeTimerText" + this.idSuffix} key="skipNoticeTimerText" className={this.state.countdownMode !== CountdownMode.Timer ? "hidden" : ""} > - {this.state.countdownTime + "s"} + {chrome.i18n.getMessage("NoticeTimeAfterSkip").replace("{seconds}", this.state.countdownTime.toString())} </span> ),( <img |