mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
Added Czech language.
This commit is contained in:
parent
6151282d46
commit
5b84378731
4 changed files with 26 additions and 15 deletions
|
|
@ -7,12 +7,17 @@ const ignore = require('../lang-ignore.json');
|
|||
const dir = path.resolve(__dirname, '../lang');
|
||||
const files = fs.readdirSync(dir);
|
||||
const keys = Object.keys(messages).sort();
|
||||
const filter = process.argv?.[2];
|
||||
|
||||
files.forEach(file => {
|
||||
if (file !== 'en-US.json') {
|
||||
const lang = require(`../lang/${file}`);
|
||||
const id = file.replace('.json', '');
|
||||
|
||||
if (filter && filter !== id) {
|
||||
return;
|
||||
}
|
||||
|
||||
console.log(chalk.yellowBright(`\n## ${file.replace('.json', '')}`));
|
||||
let count = 0;
|
||||
keys.forEach(key => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue