Skip to content

Commit

Permalink
chore(i18n): add theme translations
Browse files Browse the repository at this point in the history
Co-authored-by: razonyang <razonyang@gmail.com>
  • Loading branch information
vrifox and razonyang committed May 10, 2023
1 parent 90adb29 commit c58320d
Show file tree
Hide file tree
Showing 8 changed files with 64 additions and 1 deletion.
9 changes: 9 additions & 0 deletions i18n/de.toml
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,15 @@ other = "Tags"
[taxonomies]
other = "Klassifizierung"

[theme_auto]
other = "Auto"

[theme_dark]
other = "Dunkel"

[theme_light]
other = "Hell"

[tipeee]
other = "Tipeee"

Expand Down
9 changes: 9 additions & 0 deletions i18n/en.toml
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,15 @@ other = "Tags"
[taxonomies]
other = "Taxonomies"

[theme_auto]
other = "Auto"

[theme_dark]
other = "Dark"

[theme_light]
other = "Light"

[tipeee]
other = "Tipeee"

Expand Down
9 changes: 9 additions & 0 deletions i18n/zh-cn.toml
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,15 @@ other = "标签"
[taxonomies]
other = "Taxonomies"

[theme_auto]
other = "自动"

[theme_dark]
other = "深色"

[theme_light]
other = "浅色"

[try_again]
other = "再试一次"

Expand Down
9 changes: 9 additions & 0 deletions i18n/zh-hans.toml
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,15 @@ other = "标签"
[taxonomies]
other = "Taxonomies"

[theme_auto]
other = "自动"

[theme_dark]
other = "深色"

[theme_light]
other = "浅色"

[try_again]
other = "再试一次"

Expand Down
9 changes: 9 additions & 0 deletions i18n/zh-hant.toml
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,15 @@ other = "標籤"
[taxonomies]
other = "Taxonomies"

[theme_auto]
other = "自動"

[theme_dark]
other = "深色"

[theme_light]
other = "淺色"

[try_again]
other = "再試一次"

Expand Down
9 changes: 9 additions & 0 deletions i18n/zh-hk.toml
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,15 @@ other = "標籤"
[taxonomies]
other = "Taxonomies"

[theme_auto]
other = "自動"

[theme_dark]
other = "深色"

[theme_light]
other = "淺色"

[try_again]
other = "再試一次"

Expand Down
9 changes: 9 additions & 0 deletions i18n/zh-tw.toml
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,15 @@ other = "標籤"
[taxonomies]
other = "Taxonomies"

[theme_auto]
other = "自動"

[theme_dark]
other = "深色"

[theme_light]
other = "淺色"

[try_again]
other = "再試一次"

Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/header/theme.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
{{- $item := index $modes . }}
<li class="mode-item{{ if eq $mode . }} active{{ end }}" data-color-mode="{{ . }}" data-icon="{{ $item.icon }}">
<button class="dropdown-item">
<i class="mode-icon fas fa-fw fa-{{ $item.icon }}"></i> {{ . | title }}
<i class="mode-icon fas fa-fw fa-{{ $item.icon }}"></i> {{ printf "theme_%s" . | i18n }}
</button>
</li>
{{- end }}
Expand Down

0 comments on commit c58320d

Please sign in to comment.