i18n support for dark mode toggle

This commit is contained in:
Jimmy Cai 2020-12-23 18:44:15 +01:00
parent fa069e8207
commit 001738a465
No known key found for this signature in database
GPG Key ID: 3EA408E527F37B18
3 changed files with 7 additions and 1 deletions

View File

@ -1,6 +1,9 @@
toggleMenu:
other: Toggle Menu
darkMode:
other: Dark Mode
list:
page:
one: "{{ .Count }} page"

View File

@ -1,6 +1,9 @@
toggleMenu:
other: 切换菜单
darkMode:
other: 暗色模式
archives:
categories:
other: 分类

View File

@ -50,7 +50,7 @@
<li id="dark-mode-toggle">
{{ partial "helper/icon" "toggle-left" }}
{{ partial "helper/icon" "toggle-right" }}
<span>Dark Mode</span>
<span>{{ T "darkMode" }}</span>
</li>
{{ end }}
</ol>