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,
|
2021-06-29 06:11:12 +02:00
|
|
|
hu,
|
2020-10-03 20:45:19 +02:00
|
|
|
} from 'date-fns/locale';
|
2020-09-08 04:48:40 +02:00
|
|
|
|
2021-06-30 03:41:34 +02:00
|
|
|
export const languages = {
|
|
|
|
'ar-SA': { label: 'العربية', display: 'ar' },
|
|
|
|
'zh-CN': { label: '中文', display: 'cn' },
|
|
|
|
'zh-TW': { label: '中文(繁體)', display: 'tw' },
|
|
|
|
'ca-ES': { label: 'Català', display: 'ca' },
|
|
|
|
'cs-CZ': { label: 'Čeština', display: 'cs' },
|
|
|
|
'da-DK': { label: 'Dansk', display: 'da' },
|
|
|
|
'de-DE': { label: 'Deutsch', display: 'de' },
|
|
|
|
'en-US': { label: 'English', display: 'en' },
|
|
|
|
'es-MX': { label: 'Español', display: 'es' },
|
|
|
|
'fa-IR': { label: 'فارسی', display: 'fa' },
|
|
|
|
'fo-FO': { label: 'Føroyskt', display: 'fo' },
|
|
|
|
'fr-FR': { label: 'Français', display: 'fr' },
|
|
|
|
'el-GR': { label: 'Ελληνικά', display: 'el' },
|
|
|
|
'he-IL': { label: 'עברית', display: 'he' },
|
|
|
|
'hi-IN': { label: 'हिन्दी', display: 'hi' },
|
|
|
|
'hu-HU': { label: 'Hungarian', display: 'hu' },
|
|
|
|
'it-IT': { label: 'Italiano', display: 'it' },
|
|
|
|
'id-ID': { label: 'Bahasa Indonesia', display: 'id' },
|
|
|
|
'ja-JP': { label: '日本語', display: 'ja' },
|
|
|
|
'ms-MY': { label: 'Malay', display: 'ms' },
|
|
|
|
'mn-MN': { label: 'Монгол', display: 'mn' },
|
|
|
|
'nl-NL': { label: 'Nederlands', display: 'nl' },
|
|
|
|
'nb-NO': { label: 'Norsk Bokmål', display: 'nb' },
|
|
|
|
'pl-PL': { label: 'Polski', display: 'pl' },
|
|
|
|
'pt-PT': { label: 'Português', display: 'pt' },
|
|
|
|
'pt-BR': { label: 'Português do Brasil', display: 'pt-BR' },
|
|
|
|
'ru-RU': { label: 'Русский', display: 'ru' },
|
|
|
|
'ro-RO': { label: 'Română', display: 'ro' },
|
|
|
|
'sk-SK': { label: 'Slovenčina', display: 'sk' },
|
|
|
|
'fi-FI': { label: 'Suomi', display: 'fi' },
|
|
|
|
'sv-SE': { label: 'Svenska', display: 'sv' },
|
|
|
|
'ta-IN': { label: 'தமிழ்', display: 'ta' },
|
|
|
|
'tr-TR': { label: 'Türkçe', display: 'tr' },
|
|
|
|
'uk-UA': { label: 'українська', display: 'uk' },
|
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,
|
2021-06-29 06:11:12 +02:00
|
|
|
'hu-HU': hu,
|
2020-09-08 04:48:40 +02:00
|
|
|
};
|