diff --git a/modules/coreI18n/src/main/key.scala b/modules/coreI18n/src/main/key.scala index 3773d57ab925..f422beb2eb8a 100644 --- a/modules/coreI18n/src/main/key.scala +++ b/modules/coreI18n/src/main/key.scala @@ -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: diff --git a/translation/source/broadcast.xml b/translation/source/broadcast.xml index adb1bf3b2559..8140e6723b72 100644 --- a/translation/source/broadcast.xml +++ b/translation/source/broadcast.xml @@ -81,4 +81,5 @@ Past broadcasts View all broadcasts by month Back to live move + Since you chose to hide the results, all the preview boards are empty to avoid spoilers. diff --git a/ui/@types/lichess/i18n.d.ts b/ui/@types/lichess/i18n.d.ts index 3dbea56b9bd8..bf5fc7a7c25d 100644 --- a/ui/@types/lichess/i18n.d.ts +++ b/ui/@types/lichess/i18n.d.ts @@ -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 */ diff --git a/ui/analyse/src/study/multiBoard.ts b/ui/analyse/src/study/multiBoard.ts index 3a66eba0856c..3d7b0dc76afc 100644 --- a/ui/analyse/src/study/multiBoard.ts +++ b/ui/analyse/src/study/multiBoard.ts @@ -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(