fix: support croatian

This commit is contained in:
Henrique Dias 2025-11-01 08:41:50 +01:00
parent b9a03fabd9
commit 276c638663
2 changed files with 5 additions and 0 deletions

View File

@ -16,6 +16,7 @@ export default {
const dataObj = {};
const locales = {
he: "עברית",
hr: "Hrvatski",
hu: "Magyar",
ar: "العربية",
ca: "Català",

View File

@ -8,6 +8,7 @@ import("dayjs/locale/en");
import("dayjs/locale/es");
import("dayjs/locale/fr");
import("dayjs/locale/he");
import("dayjs/locale/hr");
import("dayjs/locale/hu");
import("dayjs/locale/is");
import("dayjs/locale/it");
@ -41,6 +42,9 @@ export function detectLocale() {
case /^he\b/.test(locale):
locale = "he";
break;
case /^hr\b/.test(locale):
locale = "hr";
break;
case /^hu\b/.test(locale):
locale = "hu";
break;