Skip to content

Commit 92314ac

Browse files
committed
docs: i18n for serviceWorker.updatePopup
1 parent a475274 commit 92314ac

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

docs/.vuepress/config.js

+12-3
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,18 @@ module.exports = {
2929
repo: 'vuejs/vuepress',
3030
editLinks: true,
3131
docsDir: 'docs',
32-
serviceWorker: {
33-
updatePopup: true
34-
},
3532
locales: {
3633
'/': {
3734
label: 'English',
3835
selectText: 'Languages',
3936
editLinkText: 'Edit this page on GitHub',
4037
lastUpdated: 'Last Updated',
38+
serviceWorker: {
39+
updatePopup: {
40+
message: "New content is available.",
41+
buttonText: "Refresh"
42+
}
43+
},
4144
nav: [
4245
{
4346
text: 'Guide',
@@ -65,6 +68,12 @@ module.exports = {
6568
selectText: '选择语言',
6669
editLinkText: '在 GitHub 上编辑此页',
6770
lastUpdated: '上次更新',
71+
serviceWorker: {
72+
updatePopup: {
73+
message: "发现新内容可用",
74+
buttonText: "刷新"
75+
}
76+
},
6877
nav: [
6978
{
7079
text: '指南',

0 commit comments

Comments
 (0)