From 45f158b6eebffe9540a2ca79d377ec6273fc8259 Mon Sep 17 00:00:00 2001 From: jirik Date: Fri, 16 Jun 2017 10:03:43 +0200 Subject: [PATCH] Add lang-fallback.json --- lang-fallback.json | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 lang-fallback.json diff --git a/lang-fallback.json b/lang-fallback.json new file mode 100644 index 0000000..bb28356 --- /dev/null +++ b/lang-fallback.json @@ -0,0 +1,25 @@ +{ + "layer-filter": [ + "in", + "layout.text-field", + "{name}", + "{name_en}" + ], + "decorators": [ + { + "layout.text-field": "{name:latin}\n{name:nonlatin}", + "filter-all-part": [ + "!has", + "name:en" + ] + }, + { + "layer-name-postfix": "en", + "layout.text-field": "{name:en}\n{name:nonlatin}", + "filter-all-part": [ + "has", + "name:en" + ] + } + ] +}