mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
Merge branch 'master' into master
This commit is contained in:
commit
ba99db6a3e
2 changed files with 244 additions and 1 deletions
|
|
@ -1,15 +1,17 @@
|
|||
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 { format } from 'date-fns';
|
||||
import { enUS, nl, zhCN, ru } from 'date-fns/locale';
|
||||
import { enUS, nl, zhCN, tr, ru } from 'date-fns/locale';
|
||||
|
||||
export const messages = {
|
||||
en: enMessages,
|
||||
'nl-NL': nlMessages,
|
||||
'zh-CN': zhCNMessages,
|
||||
'ru-RU': ruRUMessages,
|
||||
'tr-TR': trTRMessages,
|
||||
};
|
||||
|
||||
export const dateLocales = {
|
||||
|
|
@ -17,6 +19,7 @@ export const dateLocales = {
|
|||
'nl-NL': nl,
|
||||
'zh-CN': zhCN,
|
||||
'ru-RU': ru,
|
||||
'tr-TR': tr,
|
||||
};
|
||||
|
||||
export const menuOptions = [
|
||||
|
|
@ -24,6 +27,7 @@ export const menuOptions = [
|
|||
{ label: 'Nederlands', value: 'nl-NL', display: 'NL' },
|
||||
{ label: '中文 (Chinese Simplified)', value: 'zh-CN', display: '中文' },
|
||||
{ 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