forked from MapComplete/MapComplete
Download official languages per country
This commit is contained in:
parent
e1faf5595d
commit
5aaf57137c
4 changed files with 1660 additions and 4 deletions
|
@ -32,6 +32,10 @@ class TranslationPart {
|
|||
}
|
||||
|
||||
addTranslationObject(translations: any, context?: string) {
|
||||
if(translations["#"] === "no-translations"){
|
||||
console.log("Ignoring object at ",context,"which has '#':'no-translations'")
|
||||
return;
|
||||
}
|
||||
for (const translationsKey in translations) {
|
||||
if (!translations.hasOwnProperty(translationsKey)) {
|
||||
continue;
|
||||
|
@ -267,6 +271,9 @@ class TranslationPart {
|
|||
* @param tr
|
||||
*/
|
||||
function isTranslation(tr: any): boolean {
|
||||
if(tr["#"] === "no-translations") {
|
||||
return false
|
||||
}
|
||||
for (const key in tr) {
|
||||
if (typeof tr[key] !== "string") {
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue