feat: deportace Němců

This commit is contained in:
EETagent 2023-01-20 13:19:11 +01:00
parent e83805743a
commit 474caab0e1
5 changed files with 5 additions and 10 deletions

View file

@ -1,8 +1,6 @@
import type { BaseTranslation } from '../i18n-types.js'
const cs: BaseTranslation = {
// TODO: your translations go here
HI: 'Hi {name:string}! Please leave a star if you like this project: https://github.com/ivanhofer/typesafe-i18n',
}
export default cs

View file

@ -1,8 +0,0 @@
import type { Translation } from '../i18n-types.js'
const de: Translation = {
// this is an example Translation, just rename or delete this folder if you want
HI: 'Hallo {name}! Bitte hinterlasse einen Stern, wenn dir das Projekt gefällt: https://github.com/ivanhofer/typesafe-i18n',
}
export default de

View file

@ -6,6 +6,7 @@ import type { Locales, Translations } from './i18n-types.js'
import { loadedFormatters, loadedLocales, locales } from './i18n-util.js'
const localeTranslationLoaders = {
cs: () => import('./cs/index.js'),
}
const updateDictionary = (locale: Locales, dictionary: Partial<Translations>): Translations =>

View file

@ -5,7 +5,10 @@ import { initFormatters } from './formatters.js'
import type { Locales, Translations } from './i18n-types.js'
import { loadedFormatters, loadedLocales, locales } from './i18n-util.js'
import cs from './cs/index.js'
const localeTranslations = {
cs,
}
export const loadLocale = (locale: Locales): void => {

View file

@ -10,6 +10,7 @@ import type { Formatters, Locales, Translations, TranslationFunctions } from './
export const baseLocale: Locales = 'cs'
export const locales: Locales[] = [
'cs'
]
export const isLocale = (locale: string): locale is Locales => locales.includes(locale as Locales)