Add privacy policy

This commit is contained in:
Pieter Vander Vennet 2021-11-16 04:16:51 +01:00
parent fa82faade7
commit 852d569994
6 changed files with 38 additions and 3 deletions

View file

@ -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, " "))