mkdocs-material/material/partials/language.html

11 lines
374 B
HTML
Raw Normal View History

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