Add languages (#21870)

* add persian, croatian, and slovak

* i18n

* fix formatting due to new version of ruff
This commit is contained in:
Josh Hawkins
2026-02-03 13:29:52 -06:00
committed by GitHub
parent 06141b900e
commit 21e4b36c7c
8 changed files with 19 additions and 11 deletions

View File

@@ -37,6 +37,7 @@ const localeMap: Record<string, () => Promise<Locale>> = {
lt: () => import("date-fns/locale/lt").then((module) => module.lt),
th: () => import("date-fns/locale/th").then((module) => module.th),
ca: () => import("date-fns/locale/ca").then((module) => module.ca),
hr: () => import("date-fns/locale/hr").then((module) => module.hr),
};
export function useDateLocale(): Locale {

View File

@@ -17,9 +17,12 @@ export const supportedLanguageKeys = [
"vi",
"th",
"he",
"fa",
"ru",
"tr",
"pl",
"hr",
"sk",
"lt",
"uk",
"cs",