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

12 lines
421 B
HTML
Raw Normal View History

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