mirror of
https://github.com/alrayyes/wiki.git
synced 2025-06-01 03:40:59 +00:00
fix: set default locale for lang attribute
This commit is contained in:
parent
fd785ada56
commit
a87704cd05
2 changed files with 3 additions and 3 deletions
quartz/i18n
|
@ -20,5 +20,6 @@ export const TRANSLATIONS = {
|
|||
"uk-UA": uk,
|
||||
} as const
|
||||
|
||||
export const i18n = (locale: ValidLocale): Translation => TRANSLATIONS[locale ?? "en-US"]
|
||||
export const defaultTranslation = "en-US"
|
||||
export const i18n = (locale: ValidLocale): Translation => TRANSLATIONS[locale ?? defaultTranslation]
|
||||
export type ValidLocale = keyof typeof TRANSLATIONS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue