diff options
author | Ajay Ramachandran <[email protected]> | 2023-05-08 17:10:55 -0400 |
---|---|---|
committer | GitHub <[email protected]> | 2023-05-08 17:10:55 -0400 |
commit | 68a6286af69c3aa34762947934f22d433e0390a8 (patch) | |
tree | 933ed00bd22731ecf69d779288fed58ff9dd1d95 | |
parent | afe7271419d23e2d0c1050bbe93e30acc2250f03 (diff) | |
parent | 7960fde155f53bdc423f470d2ec663bd53cf5a45 (diff) | |
download | SponsorBlock-5.4.6.tar.gz SponsorBlock-5.4.6.zip |
Merge pull request #1715 from Blueberryy/master5.4.6
Add notice time to translation file
-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 |