mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-15 17:55:08 +01:00
Fix check-lang script. Ignore all en-GB.
This commit is contained in:
parent
a4311d4773
commit
7f3b1087a1
@ -9,6 +9,7 @@
|
|||||||
"metrics.device.tablet",
|
"metrics.device.tablet",
|
||||||
"metrics.referrers"
|
"metrics.referrers"
|
||||||
],
|
],
|
||||||
|
"en-GB": "*",
|
||||||
"fr-FR": ["metrics.actions", "metrics.pages"],
|
"fr-FR": ["metrics.actions", "metrics.pages"],
|
||||||
"lt-LT": [
|
"lt-LT": [
|
||||||
"metrics.device.desktop",
|
"metrics.device.desktop",
|
||||||
@ -31,6 +32,6 @@
|
|||||||
"message.powered-by",
|
"message.powered-by",
|
||||||
"metrics.device.desktop",
|
"metrics.device.desktop",
|
||||||
"metrics.device.tablet",
|
"metrics.device.tablet",
|
||||||
"metrics.filter.raw",
|
"metrics.filter.raw"
|
||||||
],
|
]
|
||||||
}
|
}
|
||||||
|
@ -23,7 +23,7 @@ files.forEach(file => {
|
|||||||
keys.forEach(key => {
|
keys.forEach(key => {
|
||||||
const orig = messages[key];
|
const orig = messages[key];
|
||||||
const check = lang[key];
|
const check = lang[key];
|
||||||
const ignored = ignore[id]?.includes(key);
|
const ignored = ignore[id] === '*' || ignore[id]?.includes(key);
|
||||||
|
|
||||||
if (!ignored && (!check || check === orig)) {
|
if (!ignored && (!check || check === orig)) {
|
||||||
console.log(chalk.redBright('*'), chalk.greenBright(`${key}:`), orig);
|
console.log(chalk.redBright('*'), chalk.greenBright(`${key}:`), orig);
|
||||||
@ -32,7 +32,7 @@ files.forEach(file => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (count === 0) {
|
if (count === 0) {
|
||||||
console.log('**👍 Complete!**');
|
console.log('**Complete!**');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user