Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion modules/coreI18n/src/main/key.scala
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,6 @@ object I18nKey:
val `timezone`: I18nKey = "broadcast:timezone"
val `fideRatingCategory`: I18nKey = "broadcast:fideRatingCategory"
val `optionalDetails`: I18nKey = "broadcast:optionalDetails"
val `upcomingBroadcasts`: I18nKey = "broadcast:upcomingBroadcasts"
val `pastBroadcasts`: I18nKey = "broadcast:pastBroadcasts"
val `allBroadcastsByMonth`: I18nKey = "broadcast:allBroadcastsByMonth"
val `nbBroadcasts`: I18nKey = "broadcast:nbBroadcasts"
Expand Down Expand Up @@ -1134,6 +1133,7 @@ object I18nKey:
val `notifyWeb`: I18nKey = "preferences:notifyWeb"
val `notifyDevice`: I18nKey = "preferences:notifyDevice"
val `bellNotificationSound`: I18nKey = "preferences:bellNotificationSound"
val `blindfold`: I18nKey = "preferences:blindfold"

object puzzle:
val `puzzles`: I18nKey = "puzzle:puzzles"
Expand Down
1 change: 1 addition & 0 deletions translation/source/preferences.xml
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,5 @@
<string name="notifyWeb">Browser</string>
<string name="notifyDevice">Device</string>
<string name="bellNotificationSound">Bell notification sound</string>
<string name="blindfold" comment="As in Blindfold chess">Blindfold</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 @@ -2065,6 +2065,8 @@ interface I18n {
preferences: {
/** Bell notification sound */
bellNotificationSound: string;
/** Blindfold */
blindfold: string;
/** Board coordinates (A-H, 1-8) */
boardCoordinates: string;
/** Board highlights (last move and check) */
Expand Down
8 changes: 4 additions & 4 deletions ui/common/src/boardMenu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export class BoardMenu {

zenMode = (enabled = true): VNode =>
this.cmnToggle({
name: 'Zen mode',
name: i18n.preferences.zenMode,
id: 'zen',
checked: $('body').hasClass('zen'),
change: () => pubsub.emit('zen'),
Expand All @@ -53,7 +53,7 @@ export class BoardMenu {

voiceInput = (toggle: Toggle, enabled = true): VNode =>
this.cmnToggle({
name: 'Voice input',
name: i18n.preferences.inputMovesWithVoice,
id: 'voice',
checked: toggle(),
change: toggle,
Expand All @@ -63,7 +63,7 @@ export class BoardMenu {

keyboardInput = (toggle: Toggle, enabled = true): VNode =>
this.cmnToggle({
name: 'Keyboard input',
name: i18n.preferences.inputMovesWithTheKeyboard,
id: 'keyboard',
checked: toggle(),
change: toggle,
Expand All @@ -73,7 +73,7 @@ export class BoardMenu {

blindfold = (toggle: Toggle, enabled = true): VNode =>
this.cmnToggle({
name: 'Blindfold',
name: i18n.preferences.blindfold,
id: 'blindfold',
checked: toggle(),
change: toggle,
Expand Down
6 changes: 1 addition & 5 deletions ui/puzzle/src/view/boardMenu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,7 @@ export default function (ctrl: PuzzleCtrl) {
menu.keyboardInput(boolPrefXhrToggle('keyboardMove', !!ctrl.keyboardMove), true),
]),
h('section.board-menu__links', [
h(
'a',
{ attrs: { target: '_blank', href: '/account/preferences/display' } },
'Game display preferences',
),
h('a', { attrs: { target: '_blank', href: '/account/preferences/display' } }, i18n.preferences.display),
]),
]);
}
4 changes: 2 additions & 2 deletions ui/round/src/view/boardMenu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ export default function (ctrl: RoundController): LooseVNode {
h(
'a',
{ attrs: { target: '_blank', href: '/account/preferences/display' } },
'Game display preferences',
i18n.preferences.display,
),
h(
'a',
{ attrs: { target: '_blank', href: '/account/preferences/game-behavior ' } },
'Game behavior preferences',
i18n.preferences.gameBehavior,
),
]),
];
Expand Down
Loading