forked from MapComplete/MapComplete
Attempt to fix the build
This commit is contained in:
parent
d7672ce5ea
commit
c8de5166f1
3 changed files with 43 additions and 15 deletions
|
@ -12,6 +12,7 @@ mkdir dist/assets 2> /dev/null
|
|||
# This script ends every line with '&&' to chain everything. A failure will thus stop the build
|
||||
npm run generate:editor-layer-index &&
|
||||
npm run generate &&
|
||||
npm run generate:translations &&
|
||||
npm run test &&
|
||||
npm run generate:layouts
|
||||
|
||||
|
|
|
@ -55,7 +55,7 @@ class TranslationPart {
|
|||
}
|
||||
const v = translations[translationsKey]
|
||||
if (typeof (v) != "string") {
|
||||
console.error(`Non-string object at ${context} in translation while trying to add more translations to '` + translationsKey + "': ", v)
|
||||
console.error(`Non-string object at ${context} in translation while trying to add more translations to '` + translationsKey + "'. The offending object which _should_ be a translation is: ", v)
|
||||
throw "Error in an object depicting a translation: a non-string object was found. (" + context + ")\n You probably put some other section accidentally in the translation"
|
||||
}
|
||||
this.contents.set(translationsKey, v)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue