diff --git a/docs/customization.md b/docs/customization.md index 7749d3bdc..9fe5da5cc 100644 --- a/docs/customization.md +++ b/docs/customization.md @@ -112,7 +112,7 @@ The directory layout of the theme is as follows: │ ├─ integrations/ # Third-party integrations │ │ ├─ analytics.html # - Google Analytics │ │ └─ disqus.html # - Disqus -│ ├─ language/ # Localized languages +│ ├─ languages/ # Localized languages │ ├─ footer.html # Footer bar │ ├─ header.html # Header bar │ ├─ language.html # Localized labels diff --git a/material/partials/language.html b/material/partials/language.html index bd0848751..a96012afc 100644 --- a/material/partials/language.html +++ b/material/partials/language.html @@ -1,6 +1,6 @@ {#- This file was automatically generated - do not edit -#} -{% import "partials/language/" ~ config.theme.language ~ ".html" as lang %} -{% import "partials/language/en.html" as fallback %} +{% import "partials/languages/" ~ config.theme.language ~ ".html" as lang %} +{% import "partials/languages/en.html" as fallback %} {% macro t(key) %}{{ lang.t(key) or fallback.t(key) }}{% endmacro %} diff --git a/material/partials/language/af.html b/material/partials/languages/af.html similarity index 100% rename from material/partials/language/af.html rename to material/partials/languages/af.html diff --git a/material/partials/language/ar.html b/material/partials/languages/ar.html similarity index 100% rename from material/partials/language/ar.html rename to material/partials/languages/ar.html diff --git a/material/partials/language/bn.html b/material/partials/languages/bn.html similarity index 100% rename from material/partials/language/bn.html rename to material/partials/languages/bn.html diff --git a/material/partials/language/ca.html b/material/partials/languages/ca.html similarity index 100% rename from material/partials/language/ca.html rename to material/partials/languages/ca.html diff --git a/material/partials/language/cs.html b/material/partials/languages/cs.html similarity index 100% rename from material/partials/language/cs.html rename to material/partials/languages/cs.html diff --git a/material/partials/language/da.html b/material/partials/languages/da.html similarity index 100% rename from material/partials/language/da.html rename to material/partials/languages/da.html diff --git a/material/partials/language/de.html b/material/partials/languages/de.html similarity index 100% rename from material/partials/language/de.html rename to material/partials/languages/de.html diff --git a/material/partials/language/en.html b/material/partials/languages/en.html similarity index 100% rename from material/partials/language/en.html rename to material/partials/languages/en.html diff --git a/material/partials/language/eo.html b/material/partials/languages/eo.html similarity index 100% rename from material/partials/language/eo.html rename to material/partials/languages/eo.html diff --git a/material/partials/language/es.html b/material/partials/languages/es.html similarity index 100% rename from material/partials/language/es.html rename to material/partials/languages/es.html diff --git a/material/partials/language/et.html b/material/partials/languages/et.html similarity index 100% rename from material/partials/language/et.html rename to material/partials/languages/et.html diff --git a/material/partials/language/fa.html b/material/partials/languages/fa.html similarity index 100% rename from material/partials/language/fa.html rename to material/partials/languages/fa.html diff --git a/material/partials/language/fi.html b/material/partials/languages/fi.html similarity index 100% rename from material/partials/language/fi.html rename to material/partials/languages/fi.html diff --git a/material/partials/language/fr.html b/material/partials/languages/fr.html similarity index 100% rename from material/partials/language/fr.html rename to material/partials/languages/fr.html diff --git a/material/partials/language/gl.html b/material/partials/languages/gl.html similarity index 100% rename from material/partials/language/gl.html rename to material/partials/languages/gl.html diff --git a/material/partials/language/gr.html b/material/partials/languages/gr.html similarity index 100% rename from material/partials/language/gr.html rename to material/partials/languages/gr.html diff --git a/material/partials/language/he.html b/material/partials/languages/he.html similarity index 100% rename from material/partials/language/he.html rename to material/partials/languages/he.html diff --git a/material/partials/language/hi.html b/material/partials/languages/hi.html similarity index 100% rename from material/partials/language/hi.html rename to material/partials/languages/hi.html diff --git a/material/partials/language/hr.html b/material/partials/languages/hr.html similarity index 100% rename from material/partials/language/hr.html rename to material/partials/languages/hr.html diff --git a/material/partials/language/hu.html b/material/partials/languages/hu.html similarity index 100% rename from material/partials/language/hu.html rename to material/partials/languages/hu.html diff --git a/material/partials/language/id.html b/material/partials/languages/id.html similarity index 100% rename from material/partials/language/id.html rename to material/partials/languages/id.html diff --git a/material/partials/language/it.html b/material/partials/languages/it.html similarity index 100% rename from material/partials/language/it.html rename to material/partials/languages/it.html diff --git a/material/partials/language/ja.html b/material/partials/languages/ja.html similarity index 100% rename from material/partials/language/ja.html rename to material/partials/languages/ja.html diff --git a/material/partials/language/ka.html b/material/partials/languages/ka.html similarity index 100% rename from material/partials/language/ka.html rename to material/partials/languages/ka.html diff --git a/material/partials/language/kr.html b/material/partials/languages/kr.html similarity index 100% rename from material/partials/language/kr.html rename to material/partials/languages/kr.html diff --git a/material/partials/language/my.html b/material/partials/languages/my.html similarity index 100% rename from material/partials/language/my.html rename to material/partials/languages/my.html diff --git a/material/partials/language/nl.html b/material/partials/languages/nl.html similarity index 100% rename from material/partials/language/nl.html rename to material/partials/languages/nl.html diff --git a/material/partials/language/nn.html b/material/partials/languages/nn.html similarity index 100% rename from material/partials/language/nn.html rename to material/partials/languages/nn.html diff --git a/material/partials/language/no.html b/material/partials/languages/no.html similarity index 100% rename from material/partials/language/no.html rename to material/partials/languages/no.html diff --git a/material/partials/language/pl.html b/material/partials/languages/pl.html similarity index 100% rename from material/partials/language/pl.html rename to material/partials/languages/pl.html diff --git a/material/partials/language/pt.html b/material/partials/languages/pt.html similarity index 100% rename from material/partials/language/pt.html rename to material/partials/languages/pt.html diff --git a/material/partials/language/ro.html b/material/partials/languages/ro.html similarity index 100% rename from material/partials/language/ro.html rename to material/partials/languages/ro.html diff --git a/material/partials/language/ru.html b/material/partials/languages/ru.html similarity index 100% rename from material/partials/language/ru.html rename to material/partials/languages/ru.html diff --git a/material/partials/language/sh.html b/material/partials/languages/sh.html similarity index 100% rename from material/partials/language/sh.html rename to material/partials/languages/sh.html diff --git a/material/partials/language/si.html b/material/partials/languages/si.html similarity index 100% rename from material/partials/language/si.html rename to material/partials/languages/si.html diff --git a/material/partials/language/sk.html b/material/partials/languages/sk.html similarity index 100% rename from material/partials/language/sk.html rename to material/partials/languages/sk.html diff --git a/material/partials/language/sr.html b/material/partials/languages/sr.html similarity index 100% rename from material/partials/language/sr.html rename to material/partials/languages/sr.html diff --git a/material/partials/language/sv.html b/material/partials/languages/sv.html similarity index 100% rename from material/partials/language/sv.html rename to material/partials/languages/sv.html diff --git a/material/partials/language/th.html b/material/partials/languages/th.html similarity index 100% rename from material/partials/language/th.html rename to material/partials/languages/th.html diff --git a/material/partials/language/tr.html b/material/partials/languages/tr.html similarity index 100% rename from material/partials/language/tr.html rename to material/partials/languages/tr.html diff --git a/material/partials/language/uk.html b/material/partials/languages/uk.html similarity index 100% rename from material/partials/language/uk.html rename to material/partials/languages/uk.html diff --git a/material/partials/language/vi.html b/material/partials/languages/vi.html similarity index 100% rename from material/partials/language/vi.html rename to material/partials/languages/vi.html diff --git a/material/partials/language/zh-Hant.html b/material/partials/languages/zh-Hant.html similarity index 100% rename from material/partials/language/zh-Hant.html rename to material/partials/languages/zh-Hant.html diff --git a/material/partials/language/zh-TW.html b/material/partials/languages/zh-TW.html similarity index 100% rename from material/partials/language/zh-TW.html rename to material/partials/languages/zh-TW.html diff --git a/material/partials/language/zh.html b/material/partials/languages/zh.html similarity index 100% rename from material/partials/language/zh.html rename to material/partials/languages/zh.html diff --git a/src/partials/language.html b/src/partials/language.html index 2ef48e3ab..3df2c6b0b 100644 --- a/src/partials/language.html +++ b/src/partials/language.html @@ -21,8 +21,8 @@ --> -{% import "partials/language/" ~ config.theme.language ~ ".html" as lang %} -{% import "partials/language/en.html" as fallback %} +{% import "partials/languages/" ~ config.theme.language ~ ".html" as lang %} +{% import "partials/languages/en.html" as fallback %} {% macro t(key) %}{{ lang.t(key) or fallback.t(key) }}{% endmacro %} diff --git a/src/partials/language/af.html b/src/partials/languages/af.html similarity index 100% rename from src/partials/language/af.html rename to src/partials/languages/af.html diff --git a/src/partials/language/ar.html b/src/partials/languages/ar.html similarity index 100% rename from src/partials/language/ar.html rename to src/partials/languages/ar.html diff --git a/src/partials/language/bn.html b/src/partials/languages/bn.html similarity index 100% rename from src/partials/language/bn.html rename to src/partials/languages/bn.html diff --git a/src/partials/language/ca.html b/src/partials/languages/ca.html similarity index 100% rename from src/partials/language/ca.html rename to src/partials/languages/ca.html diff --git a/src/partials/language/cs.html b/src/partials/languages/cs.html similarity index 100% rename from src/partials/language/cs.html rename to src/partials/languages/cs.html diff --git a/src/partials/language/da.html b/src/partials/languages/da.html similarity index 100% rename from src/partials/language/da.html rename to src/partials/languages/da.html diff --git a/src/partials/language/de.html b/src/partials/languages/de.html similarity index 100% rename from src/partials/language/de.html rename to src/partials/languages/de.html diff --git a/src/partials/language/en.html b/src/partials/languages/en.html similarity index 100% rename from src/partials/language/en.html rename to src/partials/languages/en.html diff --git a/src/partials/language/eo.html b/src/partials/languages/eo.html similarity index 100% rename from src/partials/language/eo.html rename to src/partials/languages/eo.html diff --git a/src/partials/language/es.html b/src/partials/languages/es.html similarity index 100% rename from src/partials/language/es.html rename to src/partials/languages/es.html diff --git a/src/partials/language/et.html b/src/partials/languages/et.html similarity index 100% rename from src/partials/language/et.html rename to src/partials/languages/et.html diff --git a/src/partials/language/fa.html b/src/partials/languages/fa.html similarity index 100% rename from src/partials/language/fa.html rename to src/partials/languages/fa.html diff --git a/src/partials/language/fi.html b/src/partials/languages/fi.html similarity index 100% rename from src/partials/language/fi.html rename to src/partials/languages/fi.html diff --git a/src/partials/language/fr.html b/src/partials/languages/fr.html similarity index 100% rename from src/partials/language/fr.html rename to src/partials/languages/fr.html diff --git a/src/partials/language/gl.html b/src/partials/languages/gl.html similarity index 100% rename from src/partials/language/gl.html rename to src/partials/languages/gl.html diff --git a/src/partials/language/gr.html b/src/partials/languages/gr.html similarity index 100% rename from src/partials/language/gr.html rename to src/partials/languages/gr.html diff --git a/src/partials/language/he.html b/src/partials/languages/he.html similarity index 100% rename from src/partials/language/he.html rename to src/partials/languages/he.html diff --git a/src/partials/language/hi.html b/src/partials/languages/hi.html similarity index 100% rename from src/partials/language/hi.html rename to src/partials/languages/hi.html diff --git a/src/partials/language/hr.html b/src/partials/languages/hr.html similarity index 100% rename from src/partials/language/hr.html rename to src/partials/languages/hr.html diff --git a/src/partials/language/hu.html b/src/partials/languages/hu.html similarity index 100% rename from src/partials/language/hu.html rename to src/partials/languages/hu.html diff --git a/src/partials/language/id.html b/src/partials/languages/id.html similarity index 100% rename from src/partials/language/id.html rename to src/partials/languages/id.html diff --git a/src/partials/language/it.html b/src/partials/languages/it.html similarity index 100% rename from src/partials/language/it.html rename to src/partials/languages/it.html diff --git a/src/partials/language/ja.html b/src/partials/languages/ja.html similarity index 100% rename from src/partials/language/ja.html rename to src/partials/languages/ja.html diff --git a/src/partials/language/ka.html b/src/partials/languages/ka.html similarity index 100% rename from src/partials/language/ka.html rename to src/partials/languages/ka.html diff --git a/src/partials/language/kr.html b/src/partials/languages/kr.html similarity index 100% rename from src/partials/language/kr.html rename to src/partials/languages/kr.html diff --git a/src/partials/language/my.html b/src/partials/languages/my.html similarity index 100% rename from src/partials/language/my.html rename to src/partials/languages/my.html diff --git a/src/partials/language/nl.html b/src/partials/languages/nl.html similarity index 100% rename from src/partials/language/nl.html rename to src/partials/languages/nl.html diff --git a/src/partials/language/nn.html b/src/partials/languages/nn.html similarity index 100% rename from src/partials/language/nn.html rename to src/partials/languages/nn.html diff --git a/src/partials/language/no.html b/src/partials/languages/no.html similarity index 100% rename from src/partials/language/no.html rename to src/partials/languages/no.html diff --git a/src/partials/language/pl.html b/src/partials/languages/pl.html similarity index 100% rename from src/partials/language/pl.html rename to src/partials/languages/pl.html diff --git a/src/partials/language/pt.html b/src/partials/languages/pt.html similarity index 100% rename from src/partials/language/pt.html rename to src/partials/languages/pt.html diff --git a/src/partials/language/ro.html b/src/partials/languages/ro.html similarity index 100% rename from src/partials/language/ro.html rename to src/partials/languages/ro.html diff --git a/src/partials/language/ru.html b/src/partials/languages/ru.html similarity index 100% rename from src/partials/language/ru.html rename to src/partials/languages/ru.html diff --git a/src/partials/language/sh.html b/src/partials/languages/sh.html similarity index 100% rename from src/partials/language/sh.html rename to src/partials/languages/sh.html diff --git a/src/partials/language/si.html b/src/partials/languages/si.html similarity index 100% rename from src/partials/language/si.html rename to src/partials/languages/si.html diff --git a/src/partials/language/sk.html b/src/partials/languages/sk.html similarity index 100% rename from src/partials/language/sk.html rename to src/partials/languages/sk.html diff --git a/src/partials/language/sr.html b/src/partials/languages/sr.html similarity index 100% rename from src/partials/language/sr.html rename to src/partials/languages/sr.html diff --git a/src/partials/language/sv.html b/src/partials/languages/sv.html similarity index 100% rename from src/partials/language/sv.html rename to src/partials/languages/sv.html diff --git a/src/partials/language/th.html b/src/partials/languages/th.html similarity index 100% rename from src/partials/language/th.html rename to src/partials/languages/th.html diff --git a/src/partials/language/tr.html b/src/partials/languages/tr.html similarity index 100% rename from src/partials/language/tr.html rename to src/partials/languages/tr.html diff --git a/src/partials/language/uk.html b/src/partials/languages/uk.html similarity index 100% rename from src/partials/language/uk.html rename to src/partials/languages/uk.html diff --git a/src/partials/language/vi.html b/src/partials/languages/vi.html similarity index 100% rename from src/partials/language/vi.html rename to src/partials/languages/vi.html diff --git a/src/partials/language/zh-Hant.html b/src/partials/languages/zh-Hant.html similarity index 100% rename from src/partials/language/zh-Hant.html rename to src/partials/languages/zh-Hant.html diff --git a/src/partials/language/zh-TW.html b/src/partials/languages/zh-TW.html similarity index 100% rename from src/partials/language/zh-TW.html rename to src/partials/languages/zh-TW.html diff --git a/src/partials/language/zh.html b/src/partials/languages/zh.html similarity index 100% rename from src/partials/language/zh.html rename to src/partials/languages/zh.html