mirror of
https://git.sr.ht/~cadence/bibliogram
synced 2025-12-16 11:08:49 +00:00
Improve right-to-left language support
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
// This file was automatically generated and its contents will be overwritten later.
|
||||
|
||||
const data = {
|
||||
"meta_direction": "ltr",
|
||||
|
||||
"go_to_profile": "MISSING STRING: go_to_profile",
|
||||
"go_to_post": "MISSING STRING: go_to_post",
|
||||
"go_username_or_url": "MISSING STRING: go_username_or_url",
|
||||
|
||||
@@ -2,6 +2,8 @@ const data = {...require("./base")}
|
||||
const {pug} = require("./utils/functions")
|
||||
|
||||
;(() => {
|
||||
data.meta_direction = "ltr"
|
||||
|
||||
data.go_to_profile = "Go to profile"
|
||||
data.go_to_post = "Go to post"
|
||||
data.go_username_or_url = "Username or URL"
|
||||
|
||||
@@ -2,6 +2,8 @@ const data = {...require("./base")}
|
||||
const {pug} = require("./utils/functions")
|
||||
|
||||
;(() => {
|
||||
data.meta_direction = "rtl"
|
||||
|
||||
data.go_to_profile = "برو به نمایه"
|
||||
data.go_to_post = "برو به پست"
|
||||
data.go_username_or_url = "حساب کاربری یا لینک"
|
||||
|
||||
@@ -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`)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,6 +2,8 @@ const data = {...require("./base")}
|
||||
const {pug} = require("./utils/functions")
|
||||
|
||||
;(() => {
|
||||
data.meta_direction = "ltr"
|
||||
|
||||
data.go_to_profile = "Vai al profilo"
|
||||
data.go_to_post = "Vai al post"
|
||||
data.go_username_or_url = "Nome utente o indirizzo URL"
|
||||
|
||||
Reference in New Issue
Block a user