mirror of
https://git.sr.ht/~cadence/bibliogram
synced 2024-11-22 08:07:30 +00:00
add language_dev constant
this constant, if enabled, will display MISSING STRING: string_id if disabled, it will display the english version of string string_id
This commit is contained in:
parent
bb652639cf
commit
40eeab8435
@ -1,5 +1,7 @@
|
||||
const data = {...require("./base")}
|
||||
const {pug} = require("./utils/functions")
|
||||
const constants = require("../lib/constants")
|
||||
if (!constants.language_dev) Object.assign(data, require("./en.js"))
|
||||
|
||||
;(() => {
|
||||
data.meta_direction = "ltr"
|
||||
|
@ -1,5 +1,7 @@
|
||||
const data = {...require("./base")}
|
||||
const {pug} = require("./utils/functions")
|
||||
const constants = require("../lib/constants")
|
||||
if (!constants.language_dev) Object.assign(data, require("./en.js"))
|
||||
|
||||
;(() => {
|
||||
data.meta_direction = "ltr"
|
||||
|
@ -1,5 +1,7 @@
|
||||
const data = {...require("./base")}
|
||||
const {pug} = require("./utils/functions")
|
||||
const constants = require("../lib/constants")
|
||||
if (!constants.language_dev) Object.assign(data, require("./en.js"))
|
||||
|
||||
;(() => {
|
||||
data.meta_direction = "rtl"
|
||||
|
@ -1,5 +1,7 @@
|
||||
const data = {...require("./base")}
|
||||
const {pug} = require("./utils/functions")
|
||||
const constants = require("../lib/constants")
|
||||
if (!constants.language_dev) Object.assign(data, require("./en.js"))
|
||||
|
||||
;(() => {
|
||||
data.meta_direction = "ltr"
|
||||
|
@ -1,5 +1,7 @@
|
||||
const data = {...require("./base")}
|
||||
const {pug} = require("./utils/functions")
|
||||
const constants = require("../lib/constants")
|
||||
if (!constants.language_dev) Object.assign(data, require("./en.js"))
|
||||
|
||||
;(() => {
|
||||
data.meta_direction = "ltr"
|
||||
|
@ -1,5 +1,7 @@
|
||||
const data = {...require("./base")}
|
||||
const {pug} = require("./utils/functions")
|
||||
const constants = require("../lib/constants")
|
||||
if (!constants.language_dev) Object.assign(data, require("./en.js"))
|
||||
|
||||
;(() => {
|
||||
data.meta_direction = "ltr"
|
||||
|
@ -1,5 +1,7 @@
|
||||
const data = {...require("./base")}
|
||||
const {pug} = require("./utils/functions")
|
||||
const constants = require("../lib/constants")
|
||||
if (!constants.language_dev) Object.assign(data, require("./en.js"))
|
||||
|
||||
;(() => {
|
||||
data.meta_direction = "ltr"
|
||||
|
@ -1,5 +1,7 @@
|
||||
const data = {...require("./base")}
|
||||
const {pug} = require("./utils/functions")
|
||||
const constants = require("../lib/constants")
|
||||
if (!constants.language_dev) Object.assign(data, require("./en.js"))
|
||||
|
||||
;(() => {
|
||||
data.meta_direction = "ltr"
|
||||
|
@ -290,7 +290,10 @@ let constants = {
|
||||
additional_routes: [],
|
||||
|
||||
database_version: 10,
|
||||
actually_backup_on_database_upgrade: true
|
||||
actually_backup_on_database_upgrade: true,
|
||||
|
||||
// enable this to display: "MISSING STRING: string_id" instead of the English version for all untranslated strings
|
||||
language_dev: false
|
||||
}
|
||||
|
||||
// Override values from config and export the result
|
||||
|
Loading…
Reference in New Issue
Block a user