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
2 changed files with 5 additions and 1 deletions

View File

@@ -1235,5 +1235,9 @@
}, },
"allowScrollingToEdit": { "allowScrollingToEdit": {
"message": "Allow Scrolling To Edit Times" "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} id={"skipNoticeTimerText" + this.idSuffix}
key="skipNoticeTimerText" key="skipNoticeTimerText"
className={this.state.countdownMode !== CountdownMode.Timer ? "hidden" : ""} > className={this.state.countdownMode !== CountdownMode.Timer ? "hidden" : ""} >
{this.state.countdownTime + "s"} {chrome.i18n.getMessage("NoticeTimeAfterSkip").replace("{seconds}", this.state.countdownTime.toString())}
</span> </span>
),( ),(
<img <img