mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-15 09:45:04 +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.referrers"
|
||||
],
|
||||
"en-GB": "*",
|
||||
"fr-FR": ["metrics.actions", "metrics.pages"],
|
||||
"lt-LT": [
|
||||
"metrics.device.desktop",
|
||||
@ -31,6 +32,6 @@
|
||||
"message.powered-by",
|
||||
"metrics.device.desktop",
|
||||
"metrics.device.tablet",
|
||||
"metrics.filter.raw",
|
||||
],
|
||||
"metrics.filter.raw"
|
||||
]
|
||||
}
|
||||
|
@ -23,7 +23,7 @@ files.forEach(file => {
|
||||
keys.forEach(key => {
|
||||
const orig = messages[key];
|
||||
const check = lang[key];
|
||||
const ignored = ignore[id]?.includes(key);
|
||||
const ignored = ignore[id] === '*' || ignore[id]?.includes(key);
|
||||
|
||||
if (!ignored && (!check || check === orig)) {
|
||||
console.log(chalk.redBright('*'), chalk.greenBright(`${key}:`), orig);
|
||||
@ -32,7 +32,7 @@ files.forEach(file => {
|
||||
});
|
||||
|
||||
if (count === 0) {
|
||||
console.log('**👍 Complete!**');
|
||||
console.log('**Complete!**');
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user