Skip to content

Commit

Permalink
Localize the start button
Browse files Browse the repository at this point in the history
  • Loading branch information
qsantos committed Sep 8, 2024
1 parent 9079150 commit b0e6111
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ const translations = {
'stats.bestDay': 'Best Day',
'stats.total': 'Total',
'history.startSession': 'Press Return to start',
'start': 'Start',
'settings.title': 'Settings',
'settings.speed.title': 'Speed',
'settings.speed.unit': 'WPM',
Expand Down Expand Up @@ -242,6 +243,7 @@ const translations = {
'stats.bestDay': 'Meilleur jour',
'stats.total': 'Total',
'history.startSession': 'Appuyez sur Entrée pour commencer',
'start': 'Démarrer',
'settings.title': 'Paramètres',
'settings.speed.title': 'Vitesse',
'settings.speed.unit': 'MPM',
Expand Down Expand Up @@ -287,6 +289,7 @@ const translations = {
'stats.bestDay': 'ベスト日',
'stats.total': '総数',
'history.startSession': '開始するには、リターンキーを押してください。',
'start': '開始する',
'settings.title': '設定',
'settings.speed.title': '速度',
'settings.speed.unit': 'WPM',
Expand Down Expand Up @@ -332,6 +335,7 @@ const translations = {
'stats.bestDay': 'Mejor día',
'stats.total': 'Total',
'history.startSession': 'Presione Return para empezar',
'start': 'Iniciar',
'settings.title': 'Configuración',
'settings.speed.title': 'Velocidad',
'settings.speed.unit': 'PPM',
Expand Down Expand Up @@ -377,6 +381,7 @@ const translations = {
'stats.bestDay': 'Millor dia',
'stats.total': 'Total',
'history.startSession': 'Premeu Return per començar',
'start': 'Iniciar',
'settings.title': 'Configuració',
'settings.speed.title': 'Velocitat',
'settings.speed.unit': 'PPM',
Expand Down Expand Up @@ -886,6 +891,7 @@ function setLanguage(lang) {
document.title = 'Morse Cat - ' + t('pageTitle');
localStorage.setItem('language', lang);
getElement('settings-button', HTMLElement).innerText = t('settings.title');
getElement('start-button', HTMLElement).innerText = t('start');
renderHistory();
renderSettings();
renderStatistics();
Expand Down

0 comments on commit b0e6111

Please sign in to comment.