mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-12 22:47:18 +03:00
Merge pull request #1715 from Blueberryy/master
Add notice time to translation file
This commit is contained in:
@@ -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\""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user