This commit is contained in:
2026-04-19 17:23:31 +03:00
parent 9cad199125
commit 4f2188363a
122 changed files with 3215 additions and 116 deletions

View File

@@ -0,0 +1,9 @@
import 'server-only'
const dictionaries = {
en: () => import('./en.json').then((module) => module.default),
tr: () => import('./tr.json').then((module) => module.default),
}
export const getDictionary = async (locale: 'en' | 'tr') =>
dictionaries[locale]?.() ?? dictionaries.en()