init localize

This commit is contained in:
2026-07-01 10:56:47 -05:00
parent 275dda65e0
commit dca3a66206
18 changed files with 1008 additions and 25 deletions

11
lib/i18n/index.ts Normal file
View File

@@ -0,0 +1,11 @@
import { Locale, Dictionary } from "./types";
import de from "./de";
import en from "./en";
export const dictionaries: Record<Locale, Dictionary> = { de, en };
export function getDictionary(locale: Locale): Dictionary {
return dictionaries[locale] ?? en;
}
export { type Locale, type Dictionary } from "./types";