mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-11-14 10:57:41 +01:00
12 lines
421 B
HTML
12 lines
421 B
HTML
{% import "partials/language/" + config.theme.language + ".html" as lang %}
|
|
{% import "partials/language/en.html" as fallback %}
|
|
{% macro t(key) %}{{ {
|
|
"direction": config.theme.direction,
|
|
"search.language": (
|
|
config.extra.search | default({})
|
|
).language,
|
|
"search.tokenizer": (
|
|
config.extra.search | default({})
|
|
).tokenizer | default("", true),
|
|
}[key] or lang.t(key) or fallback.t(key) }}{% endmacro %}
|