Add privacy policy
This commit is contained in:
parent
fa82faade7
commit
852d569994
6 changed files with 38 additions and 3 deletions
|
@ -188,7 +188,7 @@ class LayerOverviewUtils {
|
|||
allTranslations
|
||||
.filter(t => t.tr.translations[neededLanguage] === undefined && t.tr.translations["*"] === undefined)
|
||||
.forEach(missing => {
|
||||
themeErrorCount.push("The theme " + theme.id + " should be translation-complete for " + neededLanguage + ", but it lacks a translation for " + missing.context+".\n\tThe full translation is "+missing.tr.translations)
|
||||
themeErrorCount.push("The theme " + theme.id + " should be translation-complete for " + neededLanguage + ", but it lacks a translation for " + missing.context+".\n\tThe english translation is "+missing.tr.textFor('en'))
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
@ -208,10 +208,15 @@ function compileTranslationsFromWeblate() {
|
|||
const allTranslations = new TranslationPart()
|
||||
|
||||
for (const translationFile of translations) {
|
||||
try{
|
||||
|
||||
const contents = JSON.parse(readFileSync(translationFile, "utf-8"));
|
||||
let language = translationFile.substring(translationFile.lastIndexOf("/") + 1)
|
||||
language = language.substring(0, language.length - 5)
|
||||
allTranslations.add(language, contents)
|
||||
}catch (e) {
|
||||
throw "Could not read file "+ translationFile+" due to "+e
|
||||
}
|
||||
}
|
||||
|
||||
writeFileSync("./assets/generated/translations.json", JSON.stringify(JSON.parse(allTranslations.toJson()), null, " "))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue