Renamed 'language' partials folder into 'languages' for consistency

This commit is contained in:
squidfunk 2020-12-30 13:21:27 +01:00
parent 45aff3cfc5
commit a339a8afb6
93 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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 %}

View File

@ -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 %}