Skip to content

Commit

Permalink
Fix toggle direction button label & tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmielnik committed Jul 3, 2024
1 parent 1b418c5 commit b32cd5e
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ const ToggleDirectionButton: FunctionComponent<Props> = ({ className, direction,

return (
<Button
aria-label={translate('keyMap.board.toggle-cell-filter')}
aria-label={translate('cell.toggle-direction')}
className={classNames(styles.button, className)}
Icon={ArrowDown}
iconClassName={classNames(styles.icon, {
[styles.right]: direction === 'horizontal',
})}
tooltip={
<>
<span>{translate('keyMap.board.toggle-cell-filter')}</span>
<span>{translate('cell.toggle-direction')}</span>
{!isTouchDevice && <span> ({translate('common.arrows')})</span>}
</>
}
Expand Down
1 change: 1 addition & 0 deletions packages/scrabble-solver/src/i18n/languages/english.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"cell.set-blank": "Mark it a blank",
"cell.set-not-blank": "Mark it not a blank",
"cell.tile.location": "Board: tile ({{x}}, {{y}})",
"cell.toggle-direction": "Typing direction",
"common.arrows": "Arrow keys",
"common.blanks": "Blanks",
"common.clear": "Clear",
Expand Down
1 change: 1 addition & 0 deletions packages/scrabble-solver/src/i18n/languages/french.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"cell.set-blank": "Marquer comme vide",
"cell.set-not-blank": "Marquer comme non vide",
"cell.tile.location": "Plateau: la case ({{x}}, {{y}})",
"cell.toggle-direction": "Direction d'écriture",
"common.arrows": "Touches fléchées",
"common.blanks": "Cases vides",
"common.clear": "Effacer",
Expand Down
1 change: 1 addition & 0 deletions packages/scrabble-solver/src/i18n/languages/german.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"cell.set-blank": "Als Blanko markieren",
"cell.set-not-blank": "Nicht als Blanko markieren",
"cell.tile.location": "Brett: Stein ({{x}}, {{y}})",
"cell.toggle-direction": "Schreibrichtung",
"common.arrows": "Pfeiltasten",
"common.blanks": "Blankos",
"common.clear": "Löschen",
Expand Down
1 change: 1 addition & 0 deletions packages/scrabble-solver/src/i18n/languages/persian.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"cell.set-blank": "علامت گذاری به عنوان خالی",
"cell.set-not-blank": "علامت گذاری به عنوان غیر خالی",
"cell.tile.location": "({{x}}، {{y}}) کاشی: صفحه",
"cell.toggle-direction": "جهت تایپ",
"common.arrows": "کلیدهای جهت دار",
"common.blanks": "خالی",
"common.clear": "پاک کردن",
Expand Down
1 change: 1 addition & 0 deletions packages/scrabble-solver/src/i18n/languages/polish.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"cell.set-blank": "Oznacz jako blank",
"cell.set-not-blank": "Oznacz jako nie blank",
"cell.tile.location": "Plansza: płytka ({{x}}, {{y}})",
"cell.toggle-direction": "Kierunek wpisywania",
"common.arrows": "Klawisze strzałek",
"common.blanks": "Blanki",
"common.clear": "Wyczyść",
Expand Down
1 change: 1 addition & 0 deletions packages/scrabble-solver/src/i18n/languages/romanian.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"cell.set-blank": "Marcare camp liber",
"cell.set-not-blank": "Marcare camp ocupat ",
"cell.tile.location": "Tabla: camp ({{x}}, {{y}})",
"cell.toggle-direction": "Directie scriere",
"common.arrows": "Sagetile",
"common.blanks": "Jokeri",
"common.clear": "Stergere",
Expand Down
1 change: 1 addition & 0 deletions packages/scrabble-solver/src/i18n/languages/spanish.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"cell.set-blank": "Marcar como en blanco",
"cell.set-not-blank": "Marcar como no en blanco",
"cell.tile.location": "Tablero: espacio ({{x}}, {{y}})",
"cell.toggle-direction": "Dirección de escritura",
"common.arrows": "Teclas de flecha",
"common.blanks": "Blancos",
"common.clear": "Borrar",
Expand Down
1 change: 1 addition & 0 deletions packages/scrabble-solver/src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ export type TranslationKey =
| 'cell.set-blank'
| 'cell.set-not-blank'
| 'cell.tile.location'
| 'cell.toggle-direction'
| 'common.arrows'
| 'common.clear'
| 'common.close'
Expand Down

0 comments on commit b32cd5e

Please sign in to comment.