mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-26 13:26:22 +00:00
fix(i18n): add default locale
This commit is contained in:
parent
19fc53854f
commit
2b9659a1c2
1 changed files with 1 additions and 1 deletions
|
@ -13,5 +13,5 @@ export const TRANSLATIONS = {
|
||||||
"nl-NL": nl,
|
"nl-NL": nl,
|
||||||
} as const
|
} as const
|
||||||
|
|
||||||
export const i18n = (locale: ValidLocale): Translation => TRANSLATIONS[locale]
|
export const i18n = (locale: ValidLocale): Translation => TRANSLATIONS[locale ?? "en-US"]
|
||||||
export type ValidLocale = keyof typeof TRANSLATIONS
|
export type ValidLocale = keyof typeof TRANSLATIONS
|
||||||
|
|
Loading…
Reference in a new issue