diff --git a/i18n/en-US.yaml b/i18n/en-US.yaml index e1afb31..0af143b 100644 --- a/i18n/en-US.yaml +++ b/i18n/en-US.yaml @@ -15,3 +15,9 @@ - id: edit_this_page translation: "Edit this page" + +- id: lang + translation: "en" + +- id: translation_warning + translation: "We publish frequent updates to our documentation, and translation of this page may still be in progress. For the most current information, please visit the English documentation." diff --git a/i18n/nl-NL.yaml b/i18n/nl-NL.yaml index cca8219..8ad299a 100644 --- a/i18n/nl-NL.yaml +++ b/i18n/nl-NL.yaml @@ -15,3 +15,9 @@ - id: edit_this_page translation: "Bewerk deze pagina" + +- id: lang + translation: "nl-NL" + +- id: translation_warning + translation: "We publish frequent updates to our documentation, and translation of this page may still be in progress. For the most current information, please visit the English documentation." diff --git a/i18n/pt-BR.yaml b/i18n/pt-BR.yaml index 8edfca6..e2c950b 100644 --- a/i18n/pt-BR.yaml +++ b/i18n/pt-BR.yaml @@ -15,3 +15,9 @@ - id: edit_this_page translation: "Edite essa página" + +- id: lang + translation: "pt-BR" + +- id: translation_warning + translation: "We publish frequent updates to our documentation, and translation of this page may still be in progress. For the most current information, please visit the English documentation." diff --git a/i18n/zh-CN.yaml b/i18n/zh-CN.yaml index 871c82e..44ecc7c 100644 --- a/i18n/zh-CN.yaml +++ b/i18n/zh-CN.yaml @@ -15,3 +15,9 @@ - id: edit_this_page translation: "编辑此页面" + +- id: lang + translation: "zh-CN" + +- id: translation_warning + translation: "我们经常发布文档更新,此页面的翻译可能仍在进行中。有关最新信息,请访问英文文档。" diff --git a/i18n/zh-TW.yaml b/i18n/zh-TW.yaml index 6547711..4365d68 100644 --- a/i18n/zh-TW.yaml +++ b/i18n/zh-TW.yaml @@ -15,3 +15,9 @@ - id: edit_this_page translation: "編輯此頁面" + +- id: lang + translation: "zh-TW" + +- id: translation_warning + translation: "我們經常發佈文檔更新,此頁面的翻譯可能仍在進行中。有關最新資訊,請訪問英文文檔。" diff --git a/layouts/partials/header.html b/layouts/partials/header.html index cec39e6..822910b 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -1,6 +1,6 @@ - + diff --git a/layouts/partials/navbar.html b/layouts/partials/navbar.html index 0dfcf8c..ecf8c8a 100644 --- a/layouts/partials/navbar.html +++ b/layouts/partials/navbar.html @@ -23,4 +23,10 @@ - \ No newline at end of file + + +{{ if not (eq (i18n "lang") "en") }} +
+ {{ i18n "translation_warning" }} +
+{{end}} diff --git a/src/main.scss b/src/main.scss index 401c57e..fdfd1e7 100644 --- a/src/main.scss +++ b/src/main.scss @@ -277,3 +277,10 @@ code { border-color: #528321; color: #528321; } + +.section.translation-warning { + padding: 1rem; + text-align: center; + background-color: yellow; + position: relative; +}