|
|
@ -1,8 +1,9 @@
|
|
|
|
import i18n, { BackendModule, FallbackLng, FallbackLngObjList } from "i18next";
|
|
|
|
import i18n, { BackendModule, FallbackLng, FallbackLngObjList } from "i18next";
|
|
|
|
|
|
|
|
import { orderBy } from "lodash-es";
|
|
|
|
import { initReactI18next } from "react-i18next";
|
|
|
|
import { initReactI18next } from "react-i18next";
|
|
|
|
import { findNearestMatchedLanguage } from "./utils/i18n";
|
|
|
|
import { findNearestMatchedLanguage } from "./utils/i18n";
|
|
|
|
|
|
|
|
|
|
|
|
export const locales = [
|
|
|
|
export const locales = orderBy([
|
|
|
|
"ar",
|
|
|
|
"ar",
|
|
|
|
"de",
|
|
|
|
"de",
|
|
|
|
"en",
|
|
|
|
"en",
|
|
|
@ -12,6 +13,7 @@ export const locales = [
|
|
|
|
"hi",
|
|
|
|
"hi",
|
|
|
|
"hr",
|
|
|
|
"hr",
|
|
|
|
"hu",
|
|
|
|
"hu",
|
|
|
|
|
|
|
|
"id",
|
|
|
|
"it",
|
|
|
|
"it",
|
|
|
|
"ja",
|
|
|
|
"ja",
|
|
|
|
"ka-GE",
|
|
|
|
"ka-GE",
|
|
|
@ -30,7 +32,7 @@ export const locales = [
|
|
|
|
"vi",
|
|
|
|
"vi",
|
|
|
|
"zh-Hans",
|
|
|
|
"zh-Hans",
|
|
|
|
"zh-Hant",
|
|
|
|
"zh-Hant",
|
|
|
|
] as const;
|
|
|
|
]);
|
|
|
|
|
|
|
|
|
|
|
|
const fallbacks = {
|
|
|
|
const fallbacks = {
|
|
|
|
"zh-HK": ["zh-Hant", "en"],
|
|
|
|
"zh-HK": ["zh-Hant", "en"],
|
|
|
|