Show latest APK name/count on app page (#1426)

This commit is contained in:
Imran Remtulla
2024-03-01 20:18:07 -05:00
parent 26be524c6d
commit fd8f967036
20 changed files with 79 additions and 20 deletions

View File

@@ -58,11 +58,10 @@ const main = async () => {
return `${translationsDir}/${f}`
}).filter(f => f.endsWith('.json') && f != templateFile)
const templateTranslation = require(templateFile)
const templateTranslation = JSON.parse(fs.readFileSync(templateFile).toString())
otherFiles.forEach(file => {
const thisTranslationOriginal = require(file)
const thisTranslationOriginal = JSON.parse(fs.readFileSync((file).toString()))
const thisTranslationNew = {}
Object.keys(templateTranslation).forEach(k => {
thisTranslationNew[k] = thisTranslationOriginal[k] || templateTranslation[k]
@@ -72,7 +71,7 @@ const main = async () => {
for (let i in otherFiles) {
const file = otherFiles[i]
const thisTranslation = require(file)
const thisTranslation = JSON.parse(fs.readFileSync((file).toString()))
const translationKeys = Object.keys(templateTranslation)
for (let j in translationKeys) {
const k = translationKeys[j]