feat(i18n): German translation (#808)

This commit is contained in:
Mats Fangohr
2024-02-05 15:59:58 +01:00
committed by GitHub
parent e58c217de1
commit b061b1b6a2
2 changed files with 67 additions and 0 deletions

View File

@ -1,10 +1,12 @@
import { Translation } from "./locales/definition"
import en from "./locales/en-US"
import fr from "./locales/fr-FR"
import de from "./locales/de-DE"
export const TRANSLATIONS = {
"en-US": en,
"fr-FR": fr,
"de-DE": de,
} as const
export const i18n = (locale: ValidLocale): Translation => TRANSLATIONS[locale]