Skip to content

Commit 36578f4

Browse files
authored
Merge pull request #22310 from shuuji3/make-versions-translatable-in-navbar
Make "Versions" string on the navbar translatable
2 parents 731e250 + a15b406 commit 36578f4

File tree

4 files changed

+21
-7
lines changed

4 files changed

+21
-7
lines changed

config.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ no = 'Sorry to hear that. Please <a href="https://github.com/USERNAME/REPOSITORY
222222
url = "https://discuss.kubernetes.io"
223223
icon = "fa fa-envelope"
224224
desc = "Discussion and help from your fellow users"
225-
225+
226226
[[params.links.user]]
227227
name = "Twitter"
228228
url = "https://twitter.com/kubernetesio"
@@ -259,7 +259,7 @@ no = 'Sorry to hear that. Please <a href="https://github.com/USERNAME/REPOSITORY
259259
url = "https://git.k8s.io/community/contributors/guide"
260260
icon = "fas fa-edit"
261261
desc = "Contribute to the Kubernetes website"
262-
262+
263263
[[params.links.developer]]
264264
name = "Stack Overflow"
265265
url = "https://stackoverflow.com/questions/tagged/kubernetes"

i18n/en.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,8 +210,11 @@ other = "Your Kubernetes server must be at or later than version "
210210
[version_check_tocheck]
211211
other = "To check the version, enter "
212212

213+
[version_menu]
214+
other = "Versions"
215+
213216
[warning]
214217
other = "Warning:"
215218

216219
[whatsnext_heading]
217-
other = "What's next"
220+
other = "What's next"

i18n/ja.toml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ other = "このページは役に立ちましたか?"
5858
[feedback_yes]
5959
other = "はい"
6060

61+
[input_placeholder_email_address]
62+
other = "メールアドレス"
63+
6164
[latest_version]
6265
other = "最新バージョン"
6366

@@ -187,11 +190,11 @@ other = "作業するKubernetesサーバーは次のバージョン以降のも
187190
[version_check_tocheck]
188191
other = "バージョンを確認するには次のコマンドを実行してください: "
189192

190-
[whatsnext_heading]
191-
other = "次の項目"
193+
[version_menu]
194+
other = "バージョン"
192195

193196
[warning]
194197
other = "警告:"
195198

196-
[input_placeholder_email_address]
197-
other = "メールアドレス"
199+
[whatsnext_heading]
200+
other = "次の項目"
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
2+
{{ T "version_menu" }}
3+
</a>
4+
<div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
5+
{{ range .Site.Params.versions }}
6+
<a class="dropdown-item" href="{{ .url }}">{{ .version }}</a>
7+
{{ end }}
8+
</div>

0 commit comments

Comments
 (0)