mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Fixed fallback translation in case of empty string
This commit is contained in:
parent
9a0c3e9094
commit
de74821140
@ -3,4 +3,4 @@
|
||||
-#}
|
||||
{% import "partials/language/" + config.theme.language + ".html" as lang %}
|
||||
{% import "partials/language/en.html" as fallback %}
|
||||
{% macro t(key) %}{{ lang.t(key) | default(fallback.t(key)) }}{% endmacro %}
|
||||
{% macro t(key) %}{{ lang.t(key) or fallback.t(key) }}{% endmacro %}
|
||||
|
@ -25,4 +25,4 @@
|
||||
{% import "partials/language/en.html" as fallback %}
|
||||
|
||||
<!-- Re-export translations -->
|
||||
{% macro t(key) %}{{ lang.t(key) | default(fallback.t(key)) }}{% endmacro %}
|
||||
{% macro t(key) %}{{ lang.t(key) or fallback.t(key) }}{% endmacro %}
|
||||
|
Loading…
Reference in New Issue
Block a user