Fix build
This commit is contained in:
parent
8896226762
commit
92df5643c3
6 changed files with 75 additions and 81 deletions
|
@ -9,9 +9,6 @@
|
|||
"description": {
|
||||
"en": "This maps shows all the changes made with MapComplete"
|
||||
},
|
||||
"language": [
|
||||
"en"
|
||||
],
|
||||
"maintainer": "",
|
||||
"icon": "./assets/svg/logo.svg",
|
||||
"hideFromOverview": true,
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
"hu": "WC-térkép"
|
||||
},
|
||||
"description": {
|
||||
"en": "OpenStreetMap has the biggest dataset of toilets. Worldwide, over 300.000 toilets are known in this map. And, best of all, if one is missing, you can easily add it yourself! <br/><br/> So, if you need to pee or poo, find a loo!",
|
||||
"en": "A map of public toilets",
|
||||
"de": "Eine Karte mit öffentlich zugänglichen Toiletten",
|
||||
"fr": "Carte affichant les WC et toilettes publiques",
|
||||
"nl": "Een kaart met openbare toiletten",
|
||||
|
|
|
@ -1001,6 +1001,10 @@
|
|||
"shortDescription": "This theme shows all (touristic) maps that OpenStreetMap knows of",
|
||||
"title": "A map of maps"
|
||||
},
|
||||
"notes": {
|
||||
"description": "A note is a pin on the map with some text to indicate something wrong.<br/><br/>Make sure to checkout the <a href='#filters'>filter view</a> to search for users and text.",
|
||||
"title": "Notes on OpenStreetMap"
|
||||
},
|
||||
"observation_towers": {
|
||||
"description": "Publicly accessible towers to enjoy the view",
|
||||
"shortDescription": "Publicly accessible towers to enjoy the view",
|
||||
|
|
|
@ -100,6 +100,7 @@ async function createManifest(layout: LayoutConfig) {
|
|||
name: name,
|
||||
short_name: ogTitle,
|
||||
start_url: `${layout.id.toLowerCase()}.html`,
|
||||
lang: "en",
|
||||
display: "standalone",
|
||||
background_color: "#fff",
|
||||
description: ogDescr,
|
||||
|
@ -224,7 +225,6 @@ for (const i in all) {
|
|||
createManifest(new LayoutConfig({
|
||||
icon: "assets/svg/mapcomplete_logo.svg",
|
||||
id: "index",
|
||||
language: "en",
|
||||
layers: [],
|
||||
maintainer: "Pieter Vander Vennet",
|
||||
socialImage: "assets/SocialImage.png",
|
||||
|
|
|
@ -378,15 +378,8 @@ function mergeThemeTranslations() {
|
|||
const config = themeFile.parsed;
|
||||
mergeLayerTranslation(config, themeFile.path, loadTranslationFilesFrom("themes"))
|
||||
|
||||
const oldLanguages = config.language;
|
||||
const allTranslations = new TranslationPart();
|
||||
allTranslations.recursiveAdd(config, themeFile.path)
|
||||
const newLanguages = allTranslations.knownLanguages()
|
||||
const languageDiff = newLanguages.filter(l => oldLanguages.indexOf(l) < 0).join(", ")
|
||||
if (languageDiff !== "") {
|
||||
config.language = newLanguages;
|
||||
console.log(" :hooray: Got a new language for theme", config.id, ":", languageDiff)
|
||||
}
|
||||
writeFileSync(themeFile.path, JSON.stringify(config, null, " "))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue