Merge pull request #1715 from Blueberryy/master

Add notice time to translation file
This commit is contained in:
Ajay Ramachandran 2023-05-08 17:10:55 -04:00 committed by GitHub
commit 68a6286af6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View file

@ -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\""
}
}

View file

@ -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