mirror of
https://github.com/umami-software/umami.git
synced 2026-02-07 14:17:13 +01:00
Merge branch 'master' into master
This commit is contained in:
commit
b6bb6bc3ea
3 changed files with 487 additions and 1 deletions
10
lib/lang.js
10
lib/lang.js
|
|
@ -1,15 +1,19 @@
|
|||
import enMessages from 'lang-compiled/en.json';
|
||||
import nlMessages from 'lang-compiled/nl-NL.json';
|
||||
import zhCNMessages from 'lang-compiled/zh-CN.json';
|
||||
import trTRMessages from 'lang-compiled/tr-TR.json';
|
||||
import ruRUMessages from 'lang-compiled/ru-RU.json';
|
||||
import deDEMessages from 'lang-compiled/de-DE.json';
|
||||
import { format } from 'date-fns';
|
||||
import { enUS, nl, zhCN , de} from 'date-fns/locale';
|
||||
import { enUS, nl, zhCN , tr, ru, de} from 'date-fns/locale';
|
||||
|
||||
export const messages = {
|
||||
en: enMessages,
|
||||
'nl-NL': nlMessages,
|
||||
'zh-CN': zhCNMessages,
|
||||
'de-DE': deDEMessages,
|
||||
'ru-RU': ruRUMessages,
|
||||
'tr-TR': trTRMessages,
|
||||
};
|
||||
|
||||
export const dateLocales = {
|
||||
|
|
@ -17,6 +21,8 @@ export const dateLocales = {
|
|||
'nl-NL': nl,
|
||||
'zh-CN': zhCN,
|
||||
'de-DE': de,
|
||||
'ru-RU': ru,
|
||||
'tr-TR': tr,
|
||||
};
|
||||
|
||||
export const menuOptions = [
|
||||
|
|
@ -24,6 +30,8 @@ export const menuOptions = [
|
|||
{ label: 'Nederlands', value: 'nl-NL', display: 'NL' },
|
||||
{ label: '中文 (Chinese Simplified)', value: 'zh-CN', display: '中文' },
|
||||
{ label: 'Deutsch' , value:"de-DE", display: 'DE'},
|
||||
{ label: 'Русский', value: 'ru-RU', display: 'РУ' },
|
||||
{ label: 'Turkish', value: 'tr-TR', display: 'TR' },
|
||||
];
|
||||
|
||||
export function dateFormat(date, str, locale) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue