mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-04 09:54:14 +00:00
f00c354d0d
BudgetPanel titled its add button with budget.addCategory (since April) and the trip form labelled its cover remove button with common.remove (since August). Neither key was ever in en, and t() returns an unknown key unchanged, so both rendered as the raw key in every language. Both are added to all 27 locales. Locale parity compares the locales with en, never en with the code, so nothing could catch this. client/scripts/i18n-keys.mjs (npm run lint:i18n-keys) now resolves every literal key src/ names against en: the first argument of t(), tHtml() and tr() (both sides of a conditional included), <TransHtml html>, the fallback of translateApiError and any *Key property or prop. A template key, a prefix with the rest appended and the help registry's key builders pass when their fixed parts match an en key; the one template with no fixed part is on an allow-list that names the keys it resolves to, and an entry nothing uses fails. With --unused it lists the en keys nothing reaches, as information only. en is read with shared/scripts/i18n-catalog.mjs, a reader for the locale tables as text that the parity tooling will share. It refuses a value that is not one string literal instead of skipping the key.
83 lines
3.2 KiB
TypeScript
83 lines
3.2 KiB
TypeScript
import type { TranslationStrings } from '../types';
|
|
|
|
const common: TranslationStrings = {
|
|
'common.save': 'Uložiť',
|
|
'common.showMore': 'Zobraziť viac',
|
|
'common.showLess': 'Zobraziť menej',
|
|
'common.cancel': 'Zrušiť',
|
|
'common.clear': 'Vymazať',
|
|
'common.delete': 'Odstrániť',
|
|
'common.remove': 'Odstrániť',
|
|
'common.preview': 'Náhľad',
|
|
'common.edit': 'Upraviť',
|
|
'common.add': 'Pridať',
|
|
'common.loading': 'Načítava sa...',
|
|
'common.import': 'Importovať',
|
|
'common.select': 'Vybrať',
|
|
'common.selectAll': 'Vybrať všetko',
|
|
'common.deselectAll': 'Zrušiť výber',
|
|
'common.error': 'Chyba',
|
|
'common.success': 'Úspech',
|
|
'common.unknownError': 'Neznáma chyba',
|
|
'common.tooManyAttempts': 'Príliš veľa pokusov. Skúste to znova neskôr.',
|
|
'common.back': 'Späť',
|
|
'common.all': 'Všetko',
|
|
'common.close': 'Zavrieť',
|
|
'common.open': 'Otvoriť',
|
|
'common.upload': 'Nahrať',
|
|
'common.search': 'Hľadať',
|
|
'common.confirm': 'Potvrdiť',
|
|
'common.ok': 'OK',
|
|
'common.yes': 'Áno',
|
|
'common.no': 'Nie',
|
|
'common.or': 'alebo',
|
|
'common.none': 'Žiadne',
|
|
'common.date': 'Dátum',
|
|
'common.rename': 'Premenovať',
|
|
'common.discardChanges': 'Zahodiť zmeny',
|
|
'common.discard': 'Zahodiť',
|
|
'common.unsavedTitle': 'Zahodiť zmeny?',
|
|
'common.unsavedMessage': 'To, čo ste tu zadali, ešte nie je uložené.',
|
|
'common.keepEditing': 'Pokračovať v úpravách',
|
|
'common.name': 'Meno',
|
|
'common.email': 'E-mail',
|
|
'common.password': 'Heslo',
|
|
'common.saving': 'Ukladá sa...',
|
|
'common.justNow': 'práve teraz',
|
|
'common.hoursAgo': 'pred {count} h',
|
|
'common.daysAgo': 'pred {count} d',
|
|
'common.saved': 'Uložené',
|
|
'common.update': 'Aktualizovať',
|
|
'common.change': 'Zmeniť',
|
|
'common.uploading': 'Nahráva sa…',
|
|
'common.backToPlanning': 'Späť k plánovaniu',
|
|
'common.reset': 'Obnoviť',
|
|
'common.expand': 'Rozbaliť',
|
|
'common.collapse': 'Zbaliť',
|
|
'common.copy': 'Kopírovať',
|
|
'common.copied': 'Skopírované',
|
|
'common.datepicker.prevMonth': 'Predchádzajúci mesiac',
|
|
'common.datepicker.nextMonth': 'Nasledujúci mesiac',
|
|
'common.datepicker.prevYear': 'Predchádzajúci rok',
|
|
'common.datepicker.nextYear': 'Nasledujúci rok',
|
|
'common.datepicker.prevYears': 'Predchádzajúce roky',
|
|
'common.datepicker.nextYears': 'Nasledujúce roky',
|
|
'common.datepicker.selectMonth': 'Vybrať mesiac',
|
|
'common.datepicker.selectYear': 'Vybrať rok',
|
|
'common.datepicker.enterManually': 'Zadať dátum ručne',
|
|
'common.datepicker.typeDate': 'Napíšte dátum',
|
|
'common.datepicker.dialog': 'Výber dátumu',
|
|
'common.datepicker.clearDate': 'Vymazať dátum',
|
|
'common.errorTitle': 'Niečo sa pokazilo',
|
|
'common.errorBody': 'Táto časť aplikácie prestala fungovať. Vaše údaje sú v bezpečí.',
|
|
'common.errorPanelTitle': 'Túto sekciu sa nepodarilo zobraziť',
|
|
'common.errorPanelBody': 'Zvyšok stránky funguje ďalej.',
|
|
'common.errorRetry': 'Skúsiť znova',
|
|
'common.errorReload': 'Znova načítať stránku',
|
|
'common.errorUpdateTitle': 'Je dostupná nová verzia',
|
|
'common.errorUpdateBody':
|
|
'TREK bol aktualizovaný, kým bola táto karta otvorená. Znova načítajte stránku pre novú verziu.',
|
|
'common.errorPluginTitle': 'Tento plugin sa nepodarilo zobraziť',
|
|
};
|
|
export default common;
|