Skip to content

Commit 94d578f

Browse files
committed
fix: missing loc for change theme tooltip
fixes #9069
1 parent 463b3f7 commit 94d578f

File tree

5 files changed

+5
-2
lines changed

5 files changed

+5
-2
lines changed

samples/seed/docfx.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
},
4646
"output": "_site",
4747
"exportViewModel": true,
48-
"template": ["default", "modern", "template"],
48+
"template": ["default", "modern", "template", "default(zh-cn)"],
4949
"markdownEngineProperties": {
5050
"alerts": {
5151
"TODO": "alert alert-secondary"

templates/default(zh-cn)/token.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,6 @@
5757
"themeLight": "白天",
5858
"themeDark": "夜晚",
5959
"themeAuto": "自动",
60+
"changeTheme": "切换主题",
6061
"copy": "复制"
6162
}

templates/default/token.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,5 +67,6 @@
6767
"themeLight": "Light",
6868
"themeDark": "Dark",
6969
"themeAuto": "Auto",
70+
"changeTheme": "Change theme",
7071
"copy": "Copy"
7172
}

templates/modern/layout/_master.tmpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
<meta name="loc:themeLight" content="{{__global.themeLight}}">
3535
<meta name="loc:themeDark" content="{{__global.themeDark}}">
3636
<meta name="loc:themeAuto" content="{{__global.themeAuto}}">
37+
<meta name="loc:changeTheme" content="{{__global.changeTheme}}">
3738
<meta name="loc:copy" content="{{__global.copy}}">
3839
{{/redirect_url}}
3940
</head>

templates/modern/src/theme.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export function themePicker(refresh: () => void) {
3232

3333
return html`
3434
<div class='dropdown'>
35-
<a title='Change theme' class='btn border-0 dropdown-toggle' data-bs-toggle='dropdown' aria-expanded='false'>
35+
<a title='${loc('changeTheme')}' class='btn border-0 dropdown-toggle' data-bs-toggle='dropdown' aria-expanded='false'>
3636
<i class='bi bi-${icon}'></i>
3737
</a>
3838
<ul class='dropdown-menu'>

0 commit comments

Comments
 (0)