1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-12-19 19:05:59 +01:00
mkdocs-material/material/partials/language.html
2018-01-21 23:02:04 +01:00

11 lines
374 B
HTML

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