Implement i18n with German and English support (default DE)

This commit is contained in:
2026-01-12 21:38:05 +01:00
parent a60d456b3b
commit 62e1f5f1b4
14 changed files with 471 additions and 228 deletions

9
get-dictionary.ts Normal file
View File

@@ -0,0 +1,9 @@
import "server-only";
const dictionaries = {
en: () => import("./dictionaries/en.json").then((module) => module.default),
de: () => import("./dictionaries/de.json").then((module) => module.default),
};
export const getDictionary = async (locale: keyof typeof dictionaries) =>
dictionaries[locale]();