1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-12-01 02:27:17 +01:00
mkdocs-material/material/partials/language.html
2017-10-31 20:52:29 +01:00

10 lines
349 B
HTML

{% import "partials/language/" + config.theme.language + ".html" as lang %}
{% macro t(key) %}{{ {
"search.language": (
config.extra.search | default({})
).language | default(config.theme.language, true),
"search.tokenizer": (
config.extra.search | default({})
).tokenizer | default("", true),
}[key] or lang.t(key) }}{% endmacro %}