2020-10-03 20:45:19 +02:00
|
|
|
import {
|
2021-05-11 09:44:41 +02:00
|
|
|
arSA,
|
2020-10-22 19:36:08 +02:00
|
|
|
cs,
|
2021-03-15 22:25:43 +01:00
|
|
|
sk,
|
2020-10-22 19:36:08 +02:00
|
|
|
da,
|
2020-10-03 20:45:19 +02:00
|
|
|
de,
|
2020-10-22 19:36:08 +02:00
|
|
|
el,
|
|
|
|
enUS,
|
2020-10-03 20:45:19 +02:00
|
|
|
es,
|
2020-10-22 19:36:08 +02:00
|
|
|
fi,
|
2020-10-03 20:45:19 +02:00
|
|
|
fr,
|
2021-03-13 07:30:26 +01:00
|
|
|
faIR,
|
2020-12-04 12:13:18 +01:00
|
|
|
he,
|
2020-11-30 05:39:16 +01:00
|
|
|
hi,
|
2020-10-22 19:36:08 +02:00
|
|
|
id,
|
2020-12-12 10:10:58 +01:00
|
|
|
it,
|
2020-10-22 19:36:08 +02:00
|
|
|
ja,
|
2021-05-17 07:04:40 +02:00
|
|
|
mn,
|
2021-03-27 04:52:54 +01:00
|
|
|
ms,
|
2020-10-22 19:36:08 +02:00
|
|
|
nb,
|
|
|
|
nl,
|
2020-11-07 02:30:21 +01:00
|
|
|
pl,
|
2020-10-03 20:45:19 +02:00
|
|
|
pt,
|
2021-01-30 16:32:06 +01:00
|
|
|
ptBR,
|
2020-10-03 20:45:19 +02:00
|
|
|
ro,
|
2020-10-22 19:36:08 +02:00
|
|
|
ru,
|
|
|
|
sv,
|
2020-11-25 09:32:34 +01:00
|
|
|
ta,
|
2020-10-22 19:36:08 +02:00
|
|
|
tr,
|
2020-10-03 20:45:19 +02:00
|
|
|
uk,
|
2020-10-22 19:36:08 +02:00
|
|
|
zhCN,
|
|
|
|
zhTW,
|
2021-05-20 00:40:03 +02:00
|
|
|
ca,
|
2020-10-03 20:45:19 +02:00
|
|
|
} from 'date-fns/locale';
|
2021-05-11 09:44:41 +02:00
|
|
|
import arSAMessages from 'lang-compiled/ar-SA.json';
|
2020-09-12 12:49:31 +02:00
|
|
|
import enMessages from 'lang-compiled/en-US.json';
|
2020-09-08 10:59:56 +02:00
|
|
|
import nlMessages from 'lang-compiled/nl-NL.json';
|
2020-09-08 04:48:40 +02:00
|
|
|
import zhCNMessages from 'lang-compiled/zh-CN.json';
|
2020-10-21 20:50:34 +02:00
|
|
|
import zhTWMessages from 'lang-compiled/zh-TW.json';
|
2020-09-08 23:01:26 +02:00
|
|
|
import trTRMessages from 'lang-compiled/tr-TR.json';
|
2020-09-09 17:13:27 +02:00
|
|
|
import ruRUMessages from 'lang-compiled/ru-RU.json';
|
2020-09-09 19:24:55 +02:00
|
|
|
import deDEMessages from 'lang-compiled/de-DE.json';
|
2020-09-12 05:49:41 +02:00
|
|
|
import jaMessages from 'lang-compiled/ja-JP.json';
|
2020-09-13 02:11:31 +02:00
|
|
|
import esMXMessages from 'lang-compiled/es-MX.json';
|
2020-09-14 18:56:22 +02:00
|
|
|
import frMessages from 'lang-compiled/fr-FR.json';
|
2020-09-14 12:31:15 +02:00
|
|
|
import mnMNMessages from 'lang-compiled/mn-MN.json';
|
2020-09-19 19:50:08 +02:00
|
|
|
import daMessages from 'lang-compiled/da-DK.json';
|
2020-09-20 20:38:37 +02:00
|
|
|
import svMessages from 'lang-compiled/sv-SE.json';
|
2020-09-21 20:26:13 +02:00
|
|
|
import grMessages from 'lang-compiled/el-GR.json';
|
2020-09-24 09:11:58 +02:00
|
|
|
import foMessages from 'lang-compiled/fo-FO.json';
|
2020-09-27 18:16:20 +02:00
|
|
|
import ptMessages from 'lang-compiled/pt-PT.json';
|
2021-01-30 16:32:06 +01:00
|
|
|
import ptBRMessages from 'lang-compiled/pt-BR.json';
|
2020-10-01 18:09:27 +02:00
|
|
|
import roMessages from 'lang-compiled/ro-RO.json';
|
2020-10-02 13:48:55 +02:00
|
|
|
import nbNOMessages from 'lang-compiled/nb-NO.json';
|
2020-10-03 20:45:19 +02:00
|
|
|
import idMessages from 'lang-compiled/id-ID.json';
|
|
|
|
import ukMessages from 'lang-compiled/uk-UA.json';
|
2020-10-10 06:08:30 +02:00
|
|
|
import fiMessages from 'lang-compiled/fi-FI.json';
|
2020-10-22 19:36:08 +02:00
|
|
|
import csMessages from 'lang-compiled/cs-CZ.json';
|
2021-03-15 22:25:43 +01:00
|
|
|
import skMessages from 'lang-compiled/sk-SK.json';
|
2020-11-07 02:30:21 +01:00
|
|
|
import plMessages from 'lang-compiled/pl-PL.json';
|
2020-11-25 09:32:34 +01:00
|
|
|
import taMessages from 'lang-compiled/ta-IN.json';
|
2020-11-30 05:39:16 +01:00
|
|
|
import hiMessages from 'lang-compiled/hi-IN.json';
|
2020-12-04 12:13:18 +01:00
|
|
|
import heMessages from 'lang-compiled/he-IL.json';
|
2020-12-12 10:10:58 +01:00
|
|
|
import itMessages from 'lang-compiled/it-IT.json';
|
2021-03-13 07:30:26 +01:00
|
|
|
import faIRMessages from 'lang-compiled/fa-IR.json';
|
2021-03-27 04:52:54 +01:00
|
|
|
import msMYMessages from 'lang-compiled/ms-MY.json';
|
2021-05-20 00:40:03 +02:00
|
|
|
import caMessages from 'lang-compiled/ca-ES.json';
|
2020-09-08 04:48:40 +02:00
|
|
|
|
|
|
|
export const messages = {
|
2021-05-11 09:44:41 +02:00
|
|
|
'ar-SA': arSAMessages,
|
2020-09-13 10:26:54 +02:00
|
|
|
'en-US': enMessages,
|
2020-09-08 10:35:24 +02:00
|
|
|
'nl-NL': nlMessages,
|
2020-09-08 04:48:40 +02:00
|
|
|
'zh-CN': zhCNMessages,
|
2020-10-21 20:50:34 +02:00
|
|
|
'zh-TW': zhTWMessages,
|
2020-09-09 19:24:55 +02:00
|
|
|
'de-DE': deDEMessages,
|
2020-09-09 17:13:27 +02:00
|
|
|
'ru-RU': ruRUMessages,
|
2020-09-08 23:01:26 +02:00
|
|
|
'tr-TR': trTRMessages,
|
2020-09-12 05:49:41 +02:00
|
|
|
'ja-JP': jaMessages,
|
2020-09-13 02:11:31 +02:00
|
|
|
'es-MX': esMXMessages,
|
2020-09-14 18:56:22 +02:00
|
|
|
'fr-FR': frMessages,
|
2020-09-14 12:31:15 +02:00
|
|
|
'mn-MN': mnMNMessages,
|
2020-09-19 19:50:08 +02:00
|
|
|
'da-DK': daMessages,
|
2020-09-20 20:38:37 +02:00
|
|
|
'sv-SE': svMessages,
|
2020-09-21 20:26:13 +02:00
|
|
|
'el-GR': grMessages,
|
2020-09-24 09:11:58 +02:00
|
|
|
'fo-FO': foMessages,
|
2020-09-27 18:16:20 +02:00
|
|
|
'pt-PT': ptMessages,
|
2021-01-30 16:32:06 +01:00
|
|
|
'pt-BR': ptBRMessages,
|
2020-10-01 18:09:27 +02:00
|
|
|
'ro-RO': roMessages,
|
2020-10-02 13:48:55 +02:00
|
|
|
'nb-NO': nbNOMessages,
|
2020-10-03 20:45:19 +02:00
|
|
|
'id-ID': idMessages,
|
|
|
|
'uk-UA': ukMessages,
|
2020-10-10 06:08:30 +02:00
|
|
|
'fi-FI': fiMessages,
|
2020-10-22 19:36:08 +02:00
|
|
|
'cs-CZ': csMessages,
|
2021-03-15 22:25:43 +01:00
|
|
|
'sk-SK': skMessages,
|
2020-11-07 02:30:21 +01:00
|
|
|
'pl-PL': plMessages,
|
2020-11-25 09:32:34 +01:00
|
|
|
'ta-IN': taMessages,
|
2020-11-30 05:39:16 +01:00
|
|
|
'hi-IN': hiMessages,
|
2020-12-04 12:13:18 +01:00
|
|
|
'he-IL': heMessages,
|
2020-12-12 10:10:58 +01:00
|
|
|
'it-IT': itMessages,
|
2021-03-13 07:30:26 +01:00
|
|
|
'fa-IR': faIRMessages,
|
2021-03-27 04:52:54 +01:00
|
|
|
'ms-MY': msMYMessages,
|
2021-05-20 00:40:03 +02:00
|
|
|
'ca-ES': caMessages,
|
2020-09-08 04:48:40 +02:00
|
|
|
};
|
|
|
|
|
2021-05-16 08:27:48 +02:00
|
|
|
export const rtlLocales = ['ar-SA', 'fa-IR'];
|
|
|
|
|
2020-09-08 04:48:40 +02:00
|
|
|
export const dateLocales = {
|
2021-05-11 09:44:41 +02:00
|
|
|
'ar-SA': arSA,
|
2020-09-13 10:26:54 +02:00
|
|
|
'en-US': enUS,
|
2020-09-08 10:35:24 +02:00
|
|
|
'nl-NL': nl,
|
2020-09-08 04:48:40 +02:00
|
|
|
'zh-CN': zhCN,
|
2020-10-21 20:50:34 +02:00
|
|
|
'zh-TW': zhTW,
|
2020-09-09 19:24:55 +02:00
|
|
|
'de-DE': de,
|
2020-09-19 19:50:08 +02:00
|
|
|
'da-DK': da,
|
2020-09-09 17:13:27 +02:00
|
|
|
'ru-RU': ru,
|
2020-09-20 20:38:37 +02:00
|
|
|
'sv-SE': sv,
|
2020-09-08 23:01:26 +02:00
|
|
|
'tr-TR': tr,
|
2020-09-12 05:49:41 +02:00
|
|
|
'ja-JP': ja,
|
2020-09-13 02:11:31 +02:00
|
|
|
'es-MX': es,
|
2020-09-14 18:56:22 +02:00
|
|
|
'fr-FR': fr,
|
2021-05-17 07:04:40 +02:00
|
|
|
'mn-MN': mn,
|
2020-09-21 20:26:13 +02:00
|
|
|
'el-GR': el,
|
2020-09-24 09:11:58 +02:00
|
|
|
'fo-FO': da,
|
2020-09-27 18:16:20 +02:00
|
|
|
'pt-PT': pt,
|
2021-01-30 16:32:06 +01:00
|
|
|
'pt-BR': ptBR,
|
2020-10-01 18:09:27 +02:00
|
|
|
'ro-RO': ro,
|
2020-10-02 13:48:55 +02:00
|
|
|
'nb-NO': nb,
|
2020-10-03 20:45:19 +02:00
|
|
|
'id-ID': id,
|
|
|
|
'uk-UA': uk,
|
2020-10-10 06:08:30 +02:00
|
|
|
'fi-FI': fi,
|
2020-10-22 19:36:08 +02:00
|
|
|
'cs-CZ': cs,
|
2021-03-15 22:25:43 +01:00
|
|
|
'sk-SK': sk,
|
2020-11-07 02:30:21 +01:00
|
|
|
'pl-PL': pl,
|
2020-11-25 09:32:34 +01:00
|
|
|
'ta-In': ta,
|
2020-11-30 05:39:16 +01:00
|
|
|
'hi-IN': hi,
|
2020-12-04 12:13:18 +01:00
|
|
|
'he-IL': he,
|
2020-12-12 10:10:58 +01:00
|
|
|
'it-IT': it,
|
2021-03-13 07:30:26 +01:00
|
|
|
'fa-IR': faIR,
|
2021-03-27 04:52:54 +01:00
|
|
|
'ms-MY': ms,
|
2021-05-20 00:40:03 +02:00
|
|
|
'ca-ES': ca,
|
2020-09-08 04:48:40 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
export const menuOptions = [
|
2021-05-11 09:44:41 +02:00
|
|
|
{ label: 'العربية', value: 'ar-SA', display: 'ar' },
|
2020-09-21 06:31:53 +02:00
|
|
|
{ label: '中文', value: 'zh-CN', display: 'cn' },
|
2020-10-21 20:50:34 +02:00
|
|
|
{ label: '中文(繁體)', value: 'zh-TW', display: 'tw' },
|
2021-05-20 00:40:03 +02:00
|
|
|
{ label: 'Català', value: 'ca-ES', display: 'ca' },
|
2020-10-22 19:36:08 +02:00
|
|
|
{ label: 'Čeština', value: 'cs-CZ', display: 'cs' },
|
2020-09-21 06:31:53 +02:00
|
|
|
{ label: 'Dansk', value: 'da-DK', display: 'da' },
|
|
|
|
{ label: 'Deutsch', value: 'de-DE', display: 'de' },
|
2020-10-02 21:15:42 +02:00
|
|
|
{ label: 'English', value: 'en-US', display: 'en' },
|
2020-09-21 06:31:53 +02:00
|
|
|
{ label: 'Español', value: 'es-MX', display: 'es' },
|
2021-03-13 07:30:26 +01:00
|
|
|
{ label: 'فارسی', value: 'fa-IR', display: 'fa' },
|
2020-09-25 05:20:24 +02:00
|
|
|
{ label: 'Føroyskt', value: 'fo-FO', display: 'fo' },
|
2020-09-21 06:31:53 +02:00
|
|
|
{ label: 'Français', value: 'fr-FR', display: 'fr' },
|
2020-09-21 20:26:13 +02:00
|
|
|
{ label: 'Ελληνικά', value: 'el-GR', display: 'el' },
|
2020-12-05 05:59:26 +01:00
|
|
|
{ label: 'עברית', value: 'he-IL', display: 'he' },
|
2020-11-30 05:39:16 +01:00
|
|
|
{ label: 'हिन्दी', value: 'hi-IN', display: 'hi' },
|
2020-12-12 10:10:58 +01:00
|
|
|
{ label: 'Italiano', value: 'it-IT', display: 'it' },
|
2020-10-03 20:45:19 +02:00
|
|
|
{ label: 'Bahasa Indonesia', value: 'id-ID', display: 'id' },
|
2020-09-21 06:31:53 +02:00
|
|
|
{ label: '日本語', value: 'ja-JP', display: 'ja' },
|
2021-03-27 04:52:54 +01:00
|
|
|
{ label: 'Malay', value: 'ms-MY', display: 'ms' },
|
2020-09-21 06:31:53 +02:00
|
|
|
{ label: 'Монгол', value: 'mn-MN', display: 'mn' },
|
|
|
|
{ label: 'Nederlands', value: 'nl-NL', display: 'nl' },
|
2020-10-02 20:41:29 +02:00
|
|
|
{ label: 'Norsk Bokmål', value: 'nb-NO', display: 'nb' },
|
2020-11-07 02:30:21 +01:00
|
|
|
{ label: 'Polski', value: 'pl-PL', display: 'pl' },
|
2020-09-27 18:16:20 +02:00
|
|
|
{ label: 'Português', value: 'pt-PT', display: 'pt' },
|
2021-01-30 16:32:06 +01:00
|
|
|
{ label: 'Português do Brasil', value: 'pt-BR', display: 'pt-BR' },
|
2020-09-21 06:31:53 +02:00
|
|
|
{ label: 'Русский', value: 'ru-RU', display: 'ru' },
|
2020-10-01 18:09:27 +02:00
|
|
|
{ label: 'Română', value: 'ro-RO', display: 'ro' },
|
2021-03-27 04:52:54 +01:00
|
|
|
{ label: 'Slovenčina', value: 'sk-SK', display: 'sk' },
|
2020-10-10 06:08:30 +02:00
|
|
|
{ label: 'Suomi', value: 'fi-FI', display: 'fi' },
|
2020-09-21 06:31:53 +02:00
|
|
|
{ label: 'Svenska', value: 'sv-SE', display: 'sv' },
|
2020-11-25 09:32:34 +01:00
|
|
|
{ label: 'தமிழ்', value: 'ta-IN', display: 'ta' },
|
2020-09-25 05:20:24 +02:00
|
|
|
{ label: 'Türkçe', value: 'tr-TR', display: 'tr' },
|
2020-10-03 20:45:19 +02:00
|
|
|
{ label: 'українська', value: 'uk-UA', display: 'uk' },
|
2020-09-08 04:48:40 +02:00
|
|
|
];
|