first commit

This commit is contained in:
mstfyldz
2026-05-30 18:23:21 +03:00
commit e927cd6af3
57 changed files with 12945 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
import "server-only";
import type { Locale } from "./i18n-config";
const dictionaries = {
en: () => import("./dictionaries/en.json").then((module) => module.default),
tr: () => import("./dictionaries/tr.json").then((module) => module.default),
};
export const getDictionary = async (locale: Locale) => {
return dictionaries[locale]?.() ?? dictionaries.tr();
};