Updated languages.

This commit is contained in:
Mike Cao 2020-10-03 11:45:19 -07:00
parent e7d5fb93cc
commit 7b5330c8a5

View File

@ -1,5 +1,23 @@
import { format } from 'date-fns';
import { enUS, nl, zhCN, tr, ru, de, ja, es, fr, da, sv, el, pt, ro, nb } from 'date-fns/locale';
import {
enUS,
nl,
zhCN,
tr,
ru,
de,
ja,
es,
fr,
da,
sv,
el,
pt,
ro,
nb,
id,
uk,
} from 'date-fns/locale';
import enMessages from 'lang-compiled/en-US.json';
import nlMessages from 'lang-compiled/nl-NL.json';
import zhCNMessages from 'lang-compiled/zh-CN.json';
@ -17,6 +35,8 @@ import foMessages from 'lang-compiled/fo-FO.json';
import ptMessages from 'lang-compiled/pt-PT.json';
import roMessages from 'lang-compiled/ro-RO.json';
import nbNOMessages from 'lang-compiled/nb-NO.json';
import idMessages from 'lang-compiled/id-ID.json';
import ukMessages from 'lang-compiled/uk-UA.json';
export const messages = {
'en-US': enMessages,
@ -36,6 +56,8 @@ export const messages = {
'pt-PT': ptMessages,
'ro-RO': roMessages,
'nb-NO': nbNOMessages,
'id-ID': idMessages,
'uk-UA': ukMessages,
};
export const dateLocales = {
@ -56,6 +78,8 @@ export const dateLocales = {
'pt-PT': pt,
'ro-RO': ro,
'nb-NO': nb,
'id-ID': id,
'uk-UA': uk,
};
export const menuOptions = [
@ -67,6 +91,7 @@ export const menuOptions = [
{ label: 'Føroyskt', value: 'fo-FO', display: 'fo' },
{ label: 'Français', value: 'fr-FR', display: 'fr' },
{ label: 'Ελληνικά', value: 'el-GR', display: 'el' },
{ label: 'Bahasa Indonesia', value: 'id-ID', display: 'id' },
{ label: '日本語', value: 'ja-JP', display: 'ja' },
{ label: 'Монгол', value: 'mn-MN', display: 'mn' },
{ label: 'Nederlands', value: 'nl-NL', display: 'nl' },
@ -76,6 +101,7 @@ export const menuOptions = [
{ label: 'Română', value: 'ro-RO', display: 'ro' },
{ label: 'Svenska', value: 'sv-SE', display: 'sv' },
{ label: 'Türkçe', value: 'tr-TR', display: 'tr' },
{ label: 'українська', value: 'uk-UA', display: 'uk' },
];
export function dateFormat(date, str, locale) {