mirror of
https://github.com/danbulant/Portfolio
synced 2026-06-09 01:30:18 +00:00
feat: deportace Němců
This commit is contained in:
parent
c0126bd740
commit
5a55f73154
5 changed files with 5 additions and 10 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
@ -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 =>
|
||||
|
|
|
|||
|
|
@ -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 => {
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue