mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
9 lines
341 B
HTML
9 lines
341 B
HTML
{% set languages = config.extra.language | default("en") %}
|
|
{% if languages is string %}
|
|
{% set languages = languages.split(",") | map("trim") %}
|
|
{% endif %}
|
|
{% import "partials/language/" + (languages | first) + ".html" as lang %}
|
|
{% macro t(key) %}{{ {
|
|
"search.languages": languages | join(", ")
|
|
}[key] or lang.t(key) }}{% endmacro %}
|