2024-05-16 11:44:39 +08:00
|
|
|
import i18n from "i18next";
|
|
|
|
import { initReactI18next } from "react-i18next";
|
|
|
|
import LanguageDetector from "i18next-browser-languagedetector";
|
|
|
|
import { en, english } from "./locales/en";
|
|
|
|
import { zh, chinese } from "./locales/zh";
|
2024-05-17 00:10:15 +08:00
|
|
|
import { es, spanish } from "./locales/es";
|
2024-05-16 15:44:07 +08:00
|
|
|
import { da, danish } from "./locales/da";
|
2024-05-17 23:52:34 +08:00
|
|
|
import { de, german } from "./locales/de";
|
2024-05-17 19:02:22 +08:00
|
|
|
import { vi, vietnamese } from "./locales/vi";
|
2024-05-18 04:15:18 +08:00
|
|
|
import { pt, portuguese } from "./locales/pt-br";
|
2024-07-26 01:43:34 +08:00
|
|
|
import { fa, persian } from "./locales/fa";
|
2024-05-24 04:22:40 +08:00
|
|
|
import { hi, hindi } from "./locales/hi";
|
2024-05-28 21:18:11 +08:00
|
|
|
import { uk, ukrainian } from "./locales/uk";
|
2024-05-29 17:20:52 +08:00
|
|
|
import { ru, russian } from "./locales/ru";
|
2024-07-26 15:54:31 +08:00
|
|
|
import { tr, turkish } from "./locales/tr";
|
2024-07-26 01:43:34 +08:00
|
|
|
import { mr, marathi } from "./locales/mr";
|
2024-07-26 01:29:21 +08:00
|
|
|
import { fr, french } from "./locales/fr";
|
2024-07-29 16:26:49 +08:00
|
|
|
import { he, hebrew } from "./locales/he";
|
2024-07-26 01:43:34 +08:00
|
|
|
import { pa, punjabi } from "./locales/pa";
|
2024-07-28 00:57:12 +08:00
|
|
|
import { hy, armenian } from "./locales/hy";
|
2024-07-28 03:53:19 +08:00
|
|
|
import { ar, arabic } from "./locales/ar";
|
2024-07-29 02:31:39 +08:00
|
|
|
import { zh_tw, traditionalChinese } from "./locales/zh-tw";
|
2024-07-31 19:10:44 +08:00
|
|
|
import { hu, hungarian } from "./locales/hu";
|
2024-07-30 21:42:08 +08:00
|
|
|
import { id, indonesian } from "./locales/id";
|
2024-08-14 18:10:01 +08:00
|
|
|
import { te, telugu } from "./locales/te";
|
|
|
|
import { tm, tamil } from "./locales/tm";
|
2024-08-04 09:09:20 +08:00
|
|
|
import { gu, gujarati } from "./locales/gu";
|
2024-08-05 23:30:40 +08:00
|
|
|
import { it, italian } from "./locales/it";
|
2024-08-07 13:52:11 +08:00
|
|
|
import { ko, korean } from "./locales/ko";
|
2024-08-14 18:10:01 +08:00
|
|
|
import { od, odia } from "./locales/od";
|
2024-09-16 23:25:31 +08:00
|
|
|
import { bn, bengali } from "./locales/bn";
|
2024-10-12 20:46:55 +08:00
|
|
|
import { ka, kannada } from "./locales/ka";
|
2024-10-19 02:16:10 +08:00
|
|
|
import { pl, polish } from "./locales/pl";
|
2024-10-19 04:09:08 +08:00
|
|
|
import { no, norwegian } from "./locales/no";
|
2024-10-23 02:15:23 +08:00
|
|
|
import { sv, swedish } from "./locales/sv-se";
|
2024-10-26 07:39:27 +08:00
|
|
|
import { ur, urdu } from "./locales/ur";
|
2024-05-16 11:44:39 +08:00
|
|
|
|
2024-05-17 08:49:18 +08:00
|
|
|
export const languages = [
|
|
|
|
english,
|
|
|
|
chinese,
|
|
|
|
danish,
|
|
|
|
spanish,
|
2024-05-17 23:52:34 +08:00
|
|
|
german,
|
2024-05-18 00:03:42 +08:00
|
|
|
vietnamese,
|
2024-05-19 23:32:14 +08:00
|
|
|
portuguese,
|
2024-05-24 04:22:40 +08:00
|
|
|
persian,
|
2024-05-28 21:18:11 +08:00
|
|
|
hindi,
|
2024-07-25 03:26:45 +08:00
|
|
|
marathi,
|
2024-05-29 17:20:52 +08:00
|
|
|
ukrainian,
|
|
|
|
russian,
|
2024-07-25 20:25:13 +08:00
|
|
|
turkish,
|
2024-07-26 01:29:21 +08:00
|
|
|
french,
|
2024-07-26 01:43:34 +08:00
|
|
|
punjabi,
|
2024-07-28 00:57:12 +08:00
|
|
|
armenian,
|
2024-07-28 03:53:19 +08:00
|
|
|
arabic,
|
2024-07-29 02:31:39 +08:00
|
|
|
traditionalChinese,
|
2024-07-29 16:26:49 +08:00
|
|
|
hebrew,
|
2024-07-31 20:40:19 +08:00
|
|
|
hungarian,
|
2024-07-30 21:42:08 +08:00
|
|
|
indonesian,
|
2024-07-30 20:03:54 +08:00
|
|
|
telugu,
|
2024-08-04 09:09:20 +08:00
|
|
|
tamil,
|
2024-08-05 23:30:40 +08:00
|
|
|
gujarati,
|
|
|
|
italian,
|
2024-08-07 13:52:11 +08:00
|
|
|
korean,
|
2024-08-14 18:10:01 +08:00
|
|
|
odia,
|
2024-09-16 23:25:31 +08:00
|
|
|
bengali,
|
2024-10-19 02:16:10 +08:00
|
|
|
kannada,
|
2024-10-19 04:09:08 +08:00
|
|
|
polish,
|
2024-10-23 02:15:23 +08:00
|
|
|
norwegian,
|
|
|
|
swedish,
|
2024-10-26 07:39:27 +08:00
|
|
|
urdu,
|
2024-05-17 08:49:18 +08:00
|
|
|
].sort((a, b) => a.name.localeCompare(b.name));
|
2024-05-16 11:44:39 +08:00
|
|
|
|
|
|
|
i18n
|
|
|
|
.use(LanguageDetector)
|
|
|
|
.use(initReactI18next)
|
|
|
|
.init({
|
|
|
|
fallbackLng: "en",
|
|
|
|
debug: false,
|
|
|
|
interpolation: {
|
|
|
|
escapeValue: false,
|
|
|
|
},
|
|
|
|
resources: {
|
|
|
|
en,
|
|
|
|
zh,
|
2024-05-17 00:10:15 +08:00
|
|
|
es,
|
2024-05-16 15:44:07 +08:00
|
|
|
da,
|
2024-05-17 23:52:34 +08:00
|
|
|
de,
|
2024-05-17 19:02:22 +08:00
|
|
|
vi,
|
2024-07-30 00:59:55 +08:00
|
|
|
"pt-BR": pt,
|
2024-05-24 04:22:40 +08:00
|
|
|
fa,
|
2024-05-28 21:18:11 +08:00
|
|
|
hi,
|
2024-07-25 03:26:45 +08:00
|
|
|
mr,
|
2024-05-29 17:20:52 +08:00
|
|
|
uk,
|
|
|
|
ru,
|
2024-07-25 20:25:13 +08:00
|
|
|
tr,
|
2024-07-26 01:29:21 +08:00
|
|
|
fr,
|
2024-07-26 01:43:34 +08:00
|
|
|
pa,
|
2024-07-28 00:57:12 +08:00
|
|
|
hy,
|
2024-07-28 03:53:19 +08:00
|
|
|
ar,
|
2024-07-30 00:59:55 +08:00
|
|
|
"zh-TW": zh_tw,
|
2024-07-29 16:26:49 +08:00
|
|
|
he,
|
2024-07-31 20:40:19 +08:00
|
|
|
hu,
|
2024-07-30 21:42:08 +08:00
|
|
|
id,
|
2024-07-30 20:03:54 +08:00
|
|
|
te,
|
2024-08-02 01:40:11 +08:00
|
|
|
tm,
|
2024-08-05 23:30:40 +08:00
|
|
|
gu,
|
2024-08-07 13:52:11 +08:00
|
|
|
it,
|
|
|
|
ko,
|
2024-08-14 18:10:01 +08:00
|
|
|
od,
|
2024-09-16 23:25:31 +08:00
|
|
|
bn,
|
2024-10-19 02:16:10 +08:00
|
|
|
ka,
|
2024-10-19 04:09:08 +08:00
|
|
|
pl,
|
2024-10-23 02:15:23 +08:00
|
|
|
no,
|
|
|
|
sv,
|
2024-10-26 07:39:27 +08:00
|
|
|
ur,
|
2024-05-16 11:44:39 +08:00
|
|
|
},
|
|
|
|
});
|
|
|
|
|
|
|
|
export default i18n;
|