forked from MapComplete/MapComplete
Cyclestreets: only add maxspeed=30 in Belgium; change 'language' to 'locale' in changeset tags, load notes in import_viewer up to two years back, language tweaks
This commit is contained in:
parent
a11e0fc545
commit
d1e99fc2d3
13 changed files with 88 additions and 13 deletions
|
@ -70,8 +70,7 @@ export default class LayoutConfig {
|
|||
|
||||
{
|
||||
if (typeof json.title === "string") {
|
||||
console.error("The title is not a translation, it instead is ", json.title, "("+typeof json.title+")")
|
||||
throw `The title of a theme should always be a translation, as it sets the corresponding languages (${context}.title)`
|
||||
throw `The title of a theme should always be a translation, as it sets the corresponding languages (${context}.title). The themenID is ${this.id}; the offending object is ${JSON.stringify(json.title)} which is a ${typeof json.title})`
|
||||
}
|
||||
if (this.language.length == 0) {
|
||||
throw `No languages defined. Define at least one language. (${context}.languages)`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue