2017-10-31 18:51:54 +01:00
|
|
|
{% import "partials/language/" + config.theme.language + ".html" as lang %}
|
2018-01-18 22:32:40 +01:00
|
|
|
{% import "partials/language/en.html" as oops %}
|
2017-10-19 21:01:57 +02:00
|
|
|
{% macro t(key) %}{{ {
|
2017-10-31 20:48:41 +01:00
|
|
|
"search.language": (
|
2017-10-31 19:42:43 +01:00
|
|
|
config.extra.search | default({})
|
2018-01-21 22:56:54 +01:00
|
|
|
).language,
|
2017-10-31 19:42:43 +01:00
|
|
|
"search.tokenizer": (
|
|
|
|
config.extra.search | default({})
|
|
|
|
).tokenizer | default("", true),
|
2018-01-18 22:32:40 +01:00
|
|
|
}[key] or lang.t(key) or oops.t(key) }}{% endmacro %}
|