fix: support croatian (#5502)
parent
b9a03fabd9
commit
93fe31cc55
|
|
@ -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à",
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue