Skip to content

Commit

Permalink
Merge pull request #16934 from SergioGlorias/sincehideresults-trans
Browse files Browse the repository at this point in the history
Translate sinceHideResults
  • Loading branch information
ornicar authored Feb 7, 2025
2 parents 4f57118 + de8ae40 commit cb45dc8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions modules/coreI18n/src/main/key.scala
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ object I18nKey:
val `pastBroadcasts`: I18nKey = "broadcast:pastBroadcasts"
val `allBroadcastsByMonth`: I18nKey = "broadcast:allBroadcastsByMonth"
val `backToLiveMove`: I18nKey = "broadcast:backToLiveMove"
val `sinceHideResults`: I18nKey = "broadcast:sinceHideResults"
val `nbBroadcasts`: I18nKey = "broadcast:nbBroadcasts"

object challenge:
Expand Down
1 change: 1 addition & 0 deletions translation/source/broadcast.xml
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,5 @@
<string name="pastBroadcasts">Past broadcasts</string>
<string name="allBroadcastsByMonth">View all broadcasts by month</string>
<string name="backToLiveMove">Back to live move</string>
<string name="sinceHideResults">Since you chose to hide the results, all the preview boards are empty to avoid spoilers.</string>
</resources>
2 changes: 2 additions & 0 deletions ui/@types/lichess/i18n.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,8 @@ interface I18n {
score: string;
/** Show players scores based on game results */
showScores: string;
/** Since you chose to hide the results, all the preview boards are empty to avoid spoilers. */
sinceHideResults: string;
/** Up to 64 Lichess game IDs, separated by spaces. */
sourceGameIds: string;
/** PGN Source URL */
Expand Down
2 changes: 1 addition & 1 deletion ui/analyse/src/study/multiBoard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export function view(ctrl: MultiBoardCtrl, study: StudyCtrl): MaybeVNode {
? h(
'div.empty-boards-note.text',
{ attrs: dataIcon(licon.InfoCircle) },
'Since you chose to hide the results, all the preview boards are empty to avoid spoilers.',
i18n.broadcast.sinceHideResults,
)
: undefined,
h(
Expand Down

0 comments on commit cb45dc8

Please sign in to comment.