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:
Pieter Vander Vennet 2022-01-31 20:52:56 +01:00
parent a11e0fc545
commit d1e99fc2d3
13 changed files with 88 additions and 13 deletions

View file

@ -2,7 +2,7 @@ import {Utils} from "../Utils";
export default class Constants {
public static vNumber = "0.15.1";
public static vNumber = "0.15.2";
public static ImgurApiKey = '7070e7167f0a25a'
public static readonly mapillary_client_token_v4 = "MLY|4441509239301885|b40ad2d3ea105435bd40c7e76993ae85"

View file

@ -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)`