Skip to content

Commit

Permalink
Merge pull request #1715 from Blueberryy/master
Browse files Browse the repository at this point in the history
Add notice time to translation file
  • Loading branch information
ajayyy committed May 8, 2023
2 parents afe7271 + 7960fde commit 68a6286
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions public/_locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -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\""
}
}
2 changes: 1 addition & 1 deletion src/components/NoticeComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 68a6286

Please sign in to comment.