1
0
mirror of https://git.sr.ht/~cadence/bibliogram synced 2026-02-12 04:43:44 +00:00

Improve right-to-left language support

This commit is contained in:
Cadence Ember
2020-07-28 03:31:21 +12:00
parent 9e589b5860
commit 08ef1a8f28
8 changed files with 29 additions and 9 deletions

View File

@@ -13,7 +13,7 @@ class Lang {
this.backing.set(code, data)
// Check properties
for (const key of Object.keys(base)) {
if (!data[key] || data[key] === base[key]) {
if (!key.startsWith("meta_") && (!data[key] || data[key] === base[key])) {
console.log(`[!] [${code}] ${key} was not replaced`)
}
}