feat: add core i18n runtime and catalogs

This commit is contained in:
poyrazavsever
2026-07-19 03:06:38 +03:00
parent 0548820584
commit f4a2342ac4
12 changed files with 776 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
import { toIntlLocale } from "./format";
export function getDocumentLocale(): string {
if (typeof document === "undefined") return "tr";
return document.documentElement.lang || "tr";
}
export function getDocumentIntlLocale(): string {
return toIntlLocale(getDocumentLocale());
}