Skip to content

Commit

Permalink
use existing translations
Browse files Browse the repository at this point in the history
  • Loading branch information
yafred committed Dec 9, 2024
1 parent c857af8 commit cb06f45
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 14 deletions.
4 changes: 1 addition & 3 deletions modules/coreI18n/src/main/key.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1133,9 +1133,7 @@ object I18nKey:
val `notifyWeb`: I18nKey = "preferences:notifyWeb"
val `notifyDevice`: I18nKey = "preferences:notifyDevice"
val `bellNotificationSound`: I18nKey = "preferences:bellNotificationSound"
val `blindFold`: I18nKey = "preferences:blindFold"
val `voiceInput`: I18nKey = "preferences:voiceInput"
val `keyboardInput`: I18nKey = "preferences:keyboardInput"
val `blindfold`: I18nKey = "preferences:blindfold"

object puzzle:
val `puzzles`: I18nKey = "puzzle:puzzles"
Expand Down
4 changes: 1 addition & 3 deletions translation/source/preferences.xml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +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>
<string name="voiceInput">Voice input</string>
<string name="keyboardInput">Keyboard input</string>
<string name="blindfold" comment="As in Blindfold chess">Blindfold</string>
</resources>
6 changes: 1 addition & 5 deletions ui/@types/lichess/i18n.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2066,7 +2066,7 @@ interface I18n {
/** Bell notification sound */
bellNotificationSound: string;
/** Blindfold */
blindFold: string;
blindfold: string;
/** Board coordinates (A-H, 1-8) */
boardCoordinates: string;
/** Board highlights (last move and check) */
Expand Down Expand Up @@ -2123,8 +2123,6 @@ interface I18n {
inputMovesWithTheKeyboard: string;
/** Input moves with your voice */
inputMovesWithVoice: string;
/** Keyboard input */
keyboardInput: string;
/** Material difference */
materialDifference: string;
/** Move confirmation */
Expand Down Expand Up @@ -2191,8 +2189,6 @@ interface I18n {
takebacksWithOpponentApproval: string;
/** Tenths of seconds */
tenthsOfSeconds: string;
/** Voice input */
voiceInput: string;
/** When premoving */
whenPremoving: string;
/** When time remaining < 10 seconds */
Expand Down
6 changes: 3 additions & 3 deletions ui/common/src/boardMenu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export class BoardMenu {

voiceInput = (toggle: Toggle, enabled = true): VNode =>
this.cmnToggle({
name: i18n.preferences.voiceInput,
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: i18n.preferences.keyboardInput,
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: i18n.preferences.blindFold,
name: i18n.preferences.blindfold,
id: 'blindfold',
checked: toggle(),
change: toggle,
Expand Down

0 comments on commit cb06f45

Please sign in to comment.