mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Renamed 'language' partials folder into 'languages' for consistency
This commit is contained in:
parent
45aff3cfc5
commit
a339a8afb6
@ -112,7 +112,7 @@ The directory layout of the theme is as follows:
|
|||||||
│ ├─ integrations/ # Third-party integrations
|
│ ├─ integrations/ # Third-party integrations
|
||||||
│ │ ├─ analytics.html # - Google Analytics
|
│ │ ├─ analytics.html # - Google Analytics
|
||||||
│ │ └─ disqus.html # - Disqus
|
│ │ └─ disqus.html # - Disqus
|
||||||
│ ├─ language/ # Localized languages
|
│ ├─ languages/ # Localized languages
|
||||||
│ ├─ footer.html # Footer bar
|
│ ├─ footer.html # Footer bar
|
||||||
│ ├─ header.html # Header bar
|
│ ├─ header.html # Header bar
|
||||||
│ ├─ language.html # Localized labels
|
│ ├─ language.html # Localized labels
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{#-
|
{#-
|
||||||
This file was automatically generated - do not edit
|
This file was automatically generated - do not edit
|
||||||
-#}
|
-#}
|
||||||
{% import "partials/language/" ~ config.theme.language ~ ".html" as lang %}
|
{% import "partials/languages/" ~ config.theme.language ~ ".html" as lang %}
|
||||||
{% import "partials/language/en.html" as fallback %}
|
{% import "partials/languages/en.html" as fallback %}
|
||||||
{% macro t(key) %}{{ lang.t(key) or fallback.t(key) }}{% endmacro %}
|
{% macro t(key) %}{{ lang.t(key) or fallback.t(key) }}{% endmacro %}
|
||||||
|
@ -21,8 +21,8 @@
|
|||||||
-->
|
-->
|
||||||
|
|
||||||
<!-- Import translations for given language and fallback -->
|
<!-- Import translations for given language and fallback -->
|
||||||
{% import "partials/language/" ~ config.theme.language ~ ".html" as lang %}
|
{% import "partials/languages/" ~ config.theme.language ~ ".html" as lang %}
|
||||||
{% import "partials/language/en.html" as fallback %}
|
{% import "partials/languages/en.html" as fallback %}
|
||||||
|
|
||||||
<!-- Re-export translations -->
|
<!-- Re-export translations -->
|
||||||
{% macro t(key) %}{{ lang.t(key) or fallback.t(key) }}{% endmacro %}
|
{% macro t(key) %}{{ lang.t(key) or fallback.t(key) }}{% endmacro %}
|
||||||
|
Loading…
Reference in New Issue
Block a user