mirror of
https://github.com/kremalicious/umami.git
synced 2024-12-18 15:23:38 +01:00
Add Norwegian Bokmål to list of languages to select
This commit is contained in:
parent
8d493f6b83
commit
60613c5cbf
@ -1,5 +1,5 @@
|
||||
import { format } from 'date-fns';
|
||||
import { enUS, nl, zhCN, tr, ru, de, ja, es, fr, da, sv, el, pt, ro } from 'date-fns/locale';
|
||||
import { enUS, nl, zhCN, tr, ru, de, ja, es, fr, da, sv, el, pt, ro, nb } 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';
|
||||
@ -16,6 +16,7 @@ import grMessages from 'lang-compiled/el-GR.json';
|
||||
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';
|
||||
|
||||
export const messages = {
|
||||
'en-US': enMessages,
|
||||
@ -34,6 +35,7 @@ export const messages = {
|
||||
'fo-FO': foMessages,
|
||||
'pt-PT': ptMessages,
|
||||
'ro-RO': roMessages,
|
||||
'nb-NO': nbNOMessages,
|
||||
};
|
||||
|
||||
export const dateLocales = {
|
||||
@ -53,6 +55,7 @@ export const dateLocales = {
|
||||
'fo-FO': da,
|
||||
'pt-PT': pt,
|
||||
'ro-RO': ro,
|
||||
'nb-NO': nb,
|
||||
};
|
||||
|
||||
export const menuOptions = [
|
||||
@ -72,6 +75,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: 'Norsk Bokmål', value: 'nb-NO', display: 'nb' },
|
||||
];
|
||||
|
||||
export function dateFormat(date, str, locale) {
|
||||
|
Loading…
Reference in New Issue
Block a user