From 25da98447bf84cb17ec9a52b8193beb107b61a39 Mon Sep 17 00:00:00 2001
From: hybcloud <43987901+hybcloud@users.noreply.github.com>
Date: Tue, 8 Feb 2022 09:45:21 +0800
Subject: [PATCH 1/2] add i18n support for navigation toggle
Although the toggle only appears when the page is too thin to show both navigation and content, adding i18n support do no harm.
---
i18n/en.toml | 3 +++
i18n/zh-cn.toml | 3 +++
layouts/index.html | 2 +-
3 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/i18n/en.toml b/i18n/en.toml
index ef0d31b424..8e51d2dba3 100644
--- a/i18n/en.toml
+++ b/i18n/en.toml
@@ -25,6 +25,9 @@ other = "More"
[Expand-title]
other = "Expand me..."
+[navigation-toggle]
+other = "navigation"
+
[Byte-symbol]
other = "B"
diff --git a/i18n/zh-cn.toml b/i18n/zh-cn.toml
index 8702b80d51..0876876103 100644
--- a/i18n/zh-cn.toml
+++ b/i18n/zh-cn.toml
@@ -25,6 +25,9 @@ other = "更多"
[Expand-title]
other = "展开"
+[navigation-toggle]
+other = "导航"
+
[Byte-symbol]
other = "B"
diff --git a/layouts/index.html b/layouts/index.html
index b5f7a61417..43d1b7381d 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -1,6 +1,6 @@
{{- partial "header.html" . }}
{{if .Site.Home.Content }}
From 8d8f37d139734c2f60d8d2b57d98598700e5a938 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=B6ren=20Weber?=
Date: Mon, 14 Feb 2022 23:47:47 +0100
Subject: [PATCH 2/2] nav: add additional translations #151
---
i18n/ar.toml | 3 +++
i18n/de.toml | 3 +++
i18n/en.toml | 4 ++--
i18n/es.toml | 3 +++
i18n/fr.toml | 3 +++
i18n/hi.toml | 5 ++++-
i18n/id.toml | 3 +++
i18n/ja.toml | 3 +++
i18n/nl.toml | 3 +++
i18n/pir.toml | 3 +++
i18n/pt.toml | 3 +++
i18n/ru.toml | 3 +++
i18n/tr.toml | 3 +++
i18n/vn.toml | 3 +++
i18n/zh-cn.toml | 2 +-
layouts/index.html | 2 +-
16 files changed, 44 insertions(+), 5 deletions(-)
diff --git a/i18n/ar.toml b/i18n/ar.toml
index 85bbc01ff8..f796f9e01d 100644
--- a/i18n/ar.toml
+++ b/i18n/ar.toml
@@ -25,6 +25,9 @@ other = "المزيد"
[Expand-title]
other = "...قم بتوسيع"
+[Navigation-toggle]
+other = "قائمة"
+
[Byte-symbol]
other = "B"
diff --git a/i18n/de.toml b/i18n/de.toml
index 66ee78c98f..c332d82f9b 100644
--- a/i18n/de.toml
+++ b/i18n/de.toml
@@ -25,6 +25,9 @@ other = "Mehr"
[Expand-title]
other = "Erweitere mich..."
+[Navigation-toggle]
+other = "Menu"
+
[Byte-symbol]
other = "B"
diff --git a/i18n/en.toml b/i18n/en.toml
index 8e51d2dba3..37d8bcd8ca 100644
--- a/i18n/en.toml
+++ b/i18n/en.toml
@@ -25,8 +25,8 @@ other = "More"
[Expand-title]
other = "Expand me..."
-[navigation-toggle]
-other = "navigation"
+[Navigation-toggle]
+other = "Menu"
[Byte-symbol]
other = "B"
diff --git a/i18n/es.toml b/i18n/es.toml
index 4f8064f07c..f98a3e8ce1 100644
--- a/i18n/es.toml
+++ b/i18n/es.toml
@@ -25,6 +25,9 @@ other = "Más"
[Expand-title]
other = "Expandir..."
+[Navigation-toggle]
+other = "Menú"
+
[Byte-symbol]
other = "B"
diff --git a/i18n/fr.toml b/i18n/fr.toml
index b92493fb6a..265cd00d45 100644
--- a/i18n/fr.toml
+++ b/i18n/fr.toml
@@ -25,6 +25,9 @@ other = "Aller plus loin"
[Expand-title]
other = "Déroulez-moi..."
+[Navigation-toggle]
+other = "Menu"
+
[Byte-symbol]
other = "o"
diff --git a/i18n/hi.toml b/i18n/hi.toml
index 9e09f68687..218064fe5f 100644
--- a/i18n/hi.toml
+++ b/i18n/hi.toml
@@ -23,7 +23,10 @@ other = "यह पृष्ठ संपादित करें"
other = "अधिक सामग्री दिखाएं"
[Expand-title]
-other = "विस्तार करे..."
+other = "मेनू"
+
+[Navigation-toggle]
+other = "Menú"
[Byte-symbol]
other = "B"
diff --git a/i18n/id.toml b/i18n/id.toml
index a8bcd3d55d..6acb851f51 100644
--- a/i18n/id.toml
+++ b/i18n/id.toml
@@ -25,6 +25,9 @@ other = "Lainnya"
[Expand-title]
other = "Bentangkan..."
+[Navigation-toggle]
+other = "Menu"
+
[Byte-symbol]
other = "B"
diff --git a/i18n/ja.toml b/i18n/ja.toml
index c357d13a9c..04e079f355 100644
--- a/i18n/ja.toml
+++ b/i18n/ja.toml
@@ -25,6 +25,9 @@ other = "更に"
[Expand-title]
other = "開く..."
+[Navigation-toggle]
+other = "メニュー"
+
[Byte-symbol]
other = "B"
diff --git a/i18n/nl.toml b/i18n/nl.toml
index 5ad56bd2e4..0440acf307 100644
--- a/i18n/nl.toml
+++ b/i18n/nl.toml
@@ -25,6 +25,9 @@ other = "Snelkoppelingen"
[Expand-title]
other = "Lees meer..."
+[Navigation-toggle]
+other = "Menu"
+
[Byte-symbol]
other = "B"
diff --git a/i18n/pir.toml b/i18n/pir.toml
index 6b893babea..72ed49e5aa 100644
--- a/i18n/pir.toml
+++ b/i18n/pir.toml
@@ -25,6 +25,9 @@ other = "Morrre"
[Expand-title]
other = "Expand me..."
+[Navigation-toggle]
+other = "Menu"
+
[Byte-symbol]
other = "B"
diff --git a/i18n/pt.toml b/i18n/pt.toml
index 6532da9cd2..0b8be4f1a5 100644
--- a/i18n/pt.toml
+++ b/i18n/pt.toml
@@ -25,6 +25,9 @@ other = "Mais"
[Expand-title]
other = "Expandir..."
+[Navigation-toggle]
+other = "Menu"
+
[Byte-symbol]
other = "B"
diff --git a/i18n/ru.toml b/i18n/ru.toml
index 69b44b7f6d..9e44c9f50d 100644
--- a/i18n/ru.toml
+++ b/i18n/ru.toml
@@ -25,6 +25,9 @@ other = "Еще"
[Expand-title]
other = "Развернуть..."
+[Navigation-toggle]
+other = "Меню"
+
[Byte-symbol]
other = "Б"
diff --git a/i18n/tr.toml b/i18n/tr.toml
index a6a9babb5d..3aadf3c923 100644
--- a/i18n/tr.toml
+++ b/i18n/tr.toml
@@ -25,6 +25,9 @@ other = "Dahası Var"
[Expand-title]
other = "Genişlet..."
+[Navigation-toggle]
+other = "Menü"
+
[Byte-symbol]
other = "B"
diff --git a/i18n/vn.toml b/i18n/vn.toml
index fbd7ee7eb0..f3c645a9ed 100644
--- a/i18n/vn.toml
+++ b/i18n/vn.toml
@@ -25,6 +25,9 @@ other = "Nội dung khác"
[Expand-title]
other = "Mở rộng..."
+[Navigation-toggle]
+other = "Menu"
+
[BinaryPrefix-kilobyte]
other = "kb"
diff --git a/i18n/zh-cn.toml b/i18n/zh-cn.toml
index 0876876103..eb0a8946d0 100644
--- a/i18n/zh-cn.toml
+++ b/i18n/zh-cn.toml
@@ -25,7 +25,7 @@ other = "更多"
[Expand-title]
other = "展开"
-[navigation-toggle]
+[Navigation-toggle]
other = "导航"
[Byte-symbol]
diff --git a/layouts/index.html b/layouts/index.html
index 43d1b7381d..0d7e1029b1 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -1,6 +1,6 @@
{{- partial "header.html" . }}
{{if .Site.Home.Content }}