Fix build

This commit is contained in:
pietervdvn 2022-09-18 20:28:41 +02:00
parent a70726f0aa
commit e5c20d72f4
3 changed files with 395 additions and 441 deletions

File diff suppressed because it is too large Load diff

View file

@ -1,19 +1,13 @@
{
"id": "mapcomplete-changes",
"title": {
"en": "Changes made with MapComplete",
"da": "Ændringer foretaget med MapComplete",
"de": "Mit MapComplete vorgenommene Änderungen"
"en": "Changes made with MapComplete"
},
"shortDescription": {
"en": "Shows changes made by MapComplete",
"da": "Viser ændringer foretaget af MapComplete",
"de": "Zeigt Änderungen an, die von MapComplete vorgenommen wurden"
"en": "Shows changes made by MapComplete"
},
"description": {
"en": "This map shows all the changes made with MapComplete",
"da": "Dette kort viser alle de ændringer, der er foretaget med MapComplete",
"de": "Diese Karte zeigt alle mit MapComplete vorgenommenen Änderungen"
"en": "This maps shows all the changes made with MapComplete"
},
"icon": "./assets/svg/logo.svg",
"hideFromOverview": true,
@ -26,10 +20,7 @@
{
"id": "mapcomplete-changes",
"name": {
"en": "Changeset centers",
"da": "Ændringssæt centre",
"de": "Zentrum der Änderungssätze",
"nl": "Zwaartepunten van wijzigingensets"
"en": "Changeset centers"
},
"minzoom": 0,
"source": {
@ -40,56 +31,41 @@
},
"title": {
"render": {
"en": "Changeset for {theme}",
"da": "Ændringssæt for {theme}",
"de": "Änderungssatz für {theme}"
"en": "Changeset for {theme}"
}
},
"description": {
"en": "Shows all MapComplete changes",
"da": "Viser alle MapComplete ændringer",
"de": "Zeigt alle MapComplete-Änderungen",
"nb_NO": "Viser alle MapComplete-endringer"
"en": "Shows all MapComplete changes"
},
"tagRenderings": [
{
"id": "show_changeset_id",
"render": {
"en": "Changeset <a href='https://openstreetmap.org/changeset/{id}' target='_blank'>{id}</a>",
"da": "Ændringssæt <a href='https://openstreetmap.org/changeset/{id}' target='_blank'>{id}</a>",
"de": "Änderungssatz <a href='https://openstreetmap.org/changeset/{id}' target='_blank'>{id}</a>"
"en": "Changeset <a href='https://openstreetmap.org/changeset/{id}' target='_blank'>{id}</a>"
}
},
{
"id": "contributor",
"question": {
"en": "What contributor did make this change?",
"da": "Hvilken bidragyder foretog denne ændring?",
"de": "Welcher Mitwirkende hat diese Änderung vorgenommen?"
"en": "What contributor did make this change?"
},
"freeform": {
"key": "user"
},
"render": {
"en": "Change made by <a href='https://openstreetmap.org/user/{user}' target='_blank'>{user}</a>",
"da": "Ændring foretaget af <a href='https://openstreetmap.org/user/{user}' target='_blank'>{user}</a>",
"de": "Änderung vorgenommen von <a href='https://openstreetmap.org/user/{user}' target='_blank'>{user}</a>"
"en": "Change made by <a href='https://openstreetmap.org/user/{user}' target='_blank'>{user}</a>"
}
},
{
"id": "theme-id",
"question": {
"en": "What theme was used to make this change?",
"da": "Hvilket tema blev brugt til at lave denne ændring?",
"de": "Welches Thema wurde für diese Änderung verwendet?"
"en": "What theme was used to make this change?"
},
"freeform": {
"key": "theme"
},
"render": {
"en": "Change with theme <a href='https://mapcomplete.osm.be/{theme}'>{theme}</a>",
"da": "Ændret med temaet <a href='https://mapcomplete.osm.be/{theme}'>{theme}</a>",
"de": "Geändert mit Thema <a href='https://mapcomplete.osm.be/{theme}'>{theme}</a>"
"en": "Change with theme <a href='https://mapcomplete.osm.be/{theme}'>{theme}</a>"
}
},
{
@ -98,27 +74,19 @@
"key": "locale"
},
"question": {
"en": "What locale (language) was this change made in?",
"da": "Hvilken lokalitet (sprog) blev denne ændring foretaget på?",
"de": "In welchem Gebietsschema (Sprache) wurde diese Änderung vorgenommen?"
"en": "What locale (language) was this change made in?"
},
"render": {
"en": "User locale is {locale}",
"da": "Brugerlokalitet er {locale}",
"de": "Benutzergebietsschema ist {locale}"
"en": "User locale is {locale}"
}
},
{
"id": "host",
"render": {
"en": "Changed with <a href='{host}'>{host}</a>",
"da": "Ændret med <a href='{host}'>{host}</a>",
"de": "Geändert über <a href='{host}'>{host}</a>"
"en": "Change with with <a href='{host}'>{host}</a>"
},
"question": {
"en": "What host (website) was this change made with?",
"da": "Hvilken vært (hjemmeside) blev denne ændring foretaget med?",
"de": "Über welchen Host (Webseite) wurde diese Änderung vorgenommen?"
"en": "What host (website) was this change made with?"
},
"freeform": {
"key": "host"
@ -439,9 +407,7 @@
}
],
"question": {
"en": "Themename contains {search}",
"da": "Temanavn indeholder {search}",
"de": "Themename enthält {search}"
"en": "Themename contains {search}"
}
}
]
@ -457,9 +423,7 @@
}
],
"question": {
"en": "Made by contributor {search}",
"da": "Lavet af bidragyder {search}",
"de": "Erstellt vom Mitwirkenden {search}"
"en": "Made by contributor {search}"
}
}
]
@ -475,9 +439,7 @@
}
],
"question": {
"en": "<b>Not</b> made by contributor {search}",
"da": "<b>Ikke</b> lavet af bidragyder {search}",
"de": "<b>Nicht</b> von Mitwirkendem {search}"
"en": "<b>Not</b> made by contributor {search}"
}
}
]
@ -494,9 +456,7 @@
}
],
"question": {
"en": "User language (iso-code) {search}",
"da": "Brugersprog (iso-kode) {search}",
"de": "Benutzersprache (ISO-Code) {search}"
"en": "Made before {search}"
}
}
]
@ -513,9 +473,7 @@
}
],
"question": {
"en": "Made with host {search}",
"da": "Lavet med vært {search}",
"de": "Erstellt mit host {search}"
"en": "Made after {search}"
}
}
]
@ -531,9 +489,7 @@
}
],
"question": {
"en": "User language (iso-code) {search}",
"da": "Brugersprog (iso-kode) {search}",
"de": "Benutzersprache (ISO-Code) {search}"
"en": "User language (iso-code) {search}"
}
}
]
@ -549,9 +505,7 @@
}
],
"question": {
"en": "Made with host {search}",
"da": "Lavet med vært {search}",
"de": "Erstellt mit host {search}"
"en": "Made with host {search}"
}
}
]
@ -566,9 +520,7 @@
{
"id": "link_to_more",
"render": {
"en": "More statistics can be found <a href='https://github.com/pietervdvn/MapComplete/tree/develop/Docs/Tools/graphs' target='_blank'>here</a>",
"da": "Flere statistikker kan findes <a href='https://github.com/pietervdvn/MapComplete/tree/develop/Docs/Tools/graphs' target='_blank'>her</a>",
"de": "Weitere Statistiken finden Sie unter <a href='https://github.com/pietervdvn/MapComplete/tree/develop/Docs/Tools/graphs' target='_blank'>hier</a>"
"en": "More statistics can be found <a href='https://github.com/pietervdvn/MapComplete/tree/develop/Docs/Tools/graphs' target='_blank'>here</a>"
}
},
{

View file

@ -588,6 +588,10 @@ function MergeTranslation(source: any, target: any, language: string, context: s
continue
}
if(sourceV === ""){
console.log("Ignoring empty string in the translations")
}
if (typeof targetV === "string") {
throw `At context ${context}: Could not add a translation in language ${language}. The target object has a string at the given path, whereas the translation contains an object.\n String at target: ${targetV}\n Object at translation source: ${JSON.stringify(
sourceV