fix: support croatian (#5502)

master
Henrique Dias 2025-11-01 08:53:50 +01:00 committed by GitHub
parent b9a03fabd9
commit 93fe31cc55
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 0 deletions

View File

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

View File

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