mirror of
https://github.com/kremalicious/umami.git
synced 2024-12-22 17:23:54 +01:00
Added Czech language.
This commit is contained in:
parent
6151282d46
commit
5b84378731
@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
"cs-CZ": ["label.reset", "metrics.device.tablet"],
|
||||||
"de-DE": [
|
"de-DE": [
|
||||||
"label.administrator",
|
"label.administrator",
|
||||||
"label.name",
|
"label.name",
|
||||||
|
33
lib/lang.js
33
lib/lang.js
@ -1,24 +1,25 @@
|
|||||||
import { format } from 'date-fns';
|
import { format } from 'date-fns';
|
||||||
import {
|
import {
|
||||||
enUS,
|
cs,
|
||||||
nl,
|
|
||||||
zhCN,
|
|
||||||
zhTW,
|
|
||||||
tr,
|
|
||||||
ru,
|
|
||||||
de,
|
|
||||||
ja,
|
|
||||||
es,
|
|
||||||
fr,
|
|
||||||
da,
|
da,
|
||||||
sv,
|
de,
|
||||||
el,
|
el,
|
||||||
|
enUS,
|
||||||
|
es,
|
||||||
|
fi,
|
||||||
|
fr,
|
||||||
|
id,
|
||||||
|
ja,
|
||||||
|
nb,
|
||||||
|
nl,
|
||||||
pt,
|
pt,
|
||||||
ro,
|
ro,
|
||||||
nb,
|
ru,
|
||||||
id,
|
sv,
|
||||||
|
tr,
|
||||||
uk,
|
uk,
|
||||||
fi,
|
zhCN,
|
||||||
|
zhTW,
|
||||||
} from 'date-fns/locale';
|
} from 'date-fns/locale';
|
||||||
import enMessages from 'lang-compiled/en-US.json';
|
import enMessages from 'lang-compiled/en-US.json';
|
||||||
import nlMessages from 'lang-compiled/nl-NL.json';
|
import nlMessages from 'lang-compiled/nl-NL.json';
|
||||||
@ -41,6 +42,7 @@ import nbNOMessages from 'lang-compiled/nb-NO.json';
|
|||||||
import idMessages from 'lang-compiled/id-ID.json';
|
import idMessages from 'lang-compiled/id-ID.json';
|
||||||
import ukMessages from 'lang-compiled/uk-UA.json';
|
import ukMessages from 'lang-compiled/uk-UA.json';
|
||||||
import fiMessages from 'lang-compiled/fi-FI.json';
|
import fiMessages from 'lang-compiled/fi-FI.json';
|
||||||
|
import csMessages from 'lang-compiled/cs-CZ.json';
|
||||||
|
|
||||||
export const messages = {
|
export const messages = {
|
||||||
'en-US': enMessages,
|
'en-US': enMessages,
|
||||||
@ -64,6 +66,7 @@ export const messages = {
|
|||||||
'id-ID': idMessages,
|
'id-ID': idMessages,
|
||||||
'uk-UA': ukMessages,
|
'uk-UA': ukMessages,
|
||||||
'fi-FI': fiMessages,
|
'fi-FI': fiMessages,
|
||||||
|
'cs-CZ': csMessages,
|
||||||
};
|
};
|
||||||
|
|
||||||
export const dateLocales = {
|
export const dateLocales = {
|
||||||
@ -88,11 +91,13 @@ export const dateLocales = {
|
|||||||
'id-ID': id,
|
'id-ID': id,
|
||||||
'uk-UA': uk,
|
'uk-UA': uk,
|
||||||
'fi-FI': fi,
|
'fi-FI': fi,
|
||||||
|
'cs-CZ': cs,
|
||||||
};
|
};
|
||||||
|
|
||||||
export const menuOptions = [
|
export const menuOptions = [
|
||||||
{ label: '中文', value: 'zh-CN', display: 'cn' },
|
{ label: '中文', value: 'zh-CN', display: 'cn' },
|
||||||
{ label: '中文(繁體)', value: 'zh-TW', display: 'tw' },
|
{ label: '中文(繁體)', value: 'zh-TW', display: 'tw' },
|
||||||
|
{ label: 'Čeština', value: 'cs-CZ', display: 'cs' },
|
||||||
{ label: 'Dansk', value: 'da-DK', display: 'da' },
|
{ label: 'Dansk', value: 'da-DK', display: 'da' },
|
||||||
{ label: 'Deutsch', value: 'de-DE', display: 'de' },
|
{ label: 'Deutsch', value: 'de-DE', display: 'de' },
|
||||||
{ label: 'English', value: 'en-US', display: 'en' },
|
{ label: 'English', value: 'en-US', display: 'en' },
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "umami",
|
"name": "umami",
|
||||||
"version": "1.0.0",
|
"version": "1.1.0",
|
||||||
"description": "A simple, fast, website analytics alternative to Google Analytics. ",
|
"description": "A simple, fast, website analytics alternative to Google Analytics. ",
|
||||||
"author": "Mike Cao <mike@mikecao.com>",
|
"author": "Mike Cao <mike@mikecao.com>",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
@ -7,12 +7,17 @@ const ignore = require('../lang-ignore.json');
|
|||||||
const dir = path.resolve(__dirname, '../lang');
|
const dir = path.resolve(__dirname, '../lang');
|
||||||
const files = fs.readdirSync(dir);
|
const files = fs.readdirSync(dir);
|
||||||
const keys = Object.keys(messages).sort();
|
const keys = Object.keys(messages).sort();
|
||||||
|
const filter = process.argv?.[2];
|
||||||
|
|
||||||
files.forEach(file => {
|
files.forEach(file => {
|
||||||
if (file !== 'en-US.json') {
|
if (file !== 'en-US.json') {
|
||||||
const lang = require(`../lang/${file}`);
|
const lang = require(`../lang/${file}`);
|
||||||
const id = file.replace('.json', '');
|
const id = file.replace('.json', '');
|
||||||
|
|
||||||
|
if (filter && filter !== id) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
console.log(chalk.yellowBright(`\n## ${file.replace('.json', '')}`));
|
console.log(chalk.yellowBright(`\n## ${file.replace('.json', '')}`));
|
||||||
let count = 0;
|
let count = 0;
|
||||||
keys.forEach(key => {
|
keys.forEach(key => {
|
||||||
|
Loading…
Reference in New Issue
Block a user