You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
283 B
TypeScript

export const i18n = {
defaultLocale: "en-US",
locales: ["en-US", "de-DE", "fr-CH"],
localeToLanguage: {
"en-US": "en",
"de-DE": "de",
"fr-CH": "fr",
},
} as const;
export type Locale = (typeof i18n)["locales"][number];
export type Language = "en" | "de" | "fr";