mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
10 lines
350 B
HTML
10 lines
350 B
HTML
{% import "partials/language/" + config.theme.language + ".html" as lang %}
|
|
{% macro t(key) %}{{ {
|
|
"search.languages": (
|
|
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 %}
|