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] 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" . }} - navigation +{{T "navigation-toggle"}} {{if .Site.Home.Content }}