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