* feat: setup localisation with lingui * Fix hydration and locale issues * Add missing translations and tweak selector styling * Extend language support * Update lang support * Extend lang support * Fix build and add dyanmic imports
15 lines
328 B
TypeScript
15 lines
328 B
TypeScript
export const locales = ["en", "fr", "de", "es", "it", "nl"] as const;
|
|
|
|
export type Locale = (typeof locales)[number];
|
|
|
|
export const defaultLocale: Locale = "en";
|
|
|
|
export const localeNames: Record<Locale, string> = {
|
|
en: "English",
|
|
fr: "Français",
|
|
de: "Deutsch",
|
|
es: "Español",
|
|
it: "Italiano",
|
|
nl: "Nederlands",
|
|
};
|