1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2025-01-24 15:22:17 +01:00

11 lines
413 B
HTML
Raw Normal View History

{% import "partials/language/" + config.theme.language + ".html" as lang %}
2018-01-18 22:32:40 +01:00
{% import "partials/language/en.html" as oops %}
{% macro t(key) %}{{ {
2017-10-31 20:48:41 +01:00
"search.language": (
config.extra.search | default({})
).language | default(config.theme.language, true),
"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 %}