first commit

This commit is contained in:
romiz5269
2025-11-18 18:45:28 +03:30
commit acfea140a3
152 changed files with 15818 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
import { languages_types } from "@/types";
import "server-only";
const dictionaries = {
en: () => import("./dictionaries/en.json").then((module) => module.default),
fa: () => import("./dictionaries/fa.json").then((module) => module.default),
ar: () => import("./dictionaries/ar.json").then((module) => module.default),
};
export const getDictionary = async (locale: languages_types) =>
dictionaries[locale]();