Skip to content

Commit 9ffd819

Browse files
author
reco_luan
committed
fix(vuepress-theme-reco): fix english grammar errors
locals to locales
1 parent 599ac29 commit 9ffd819

File tree

11 files changed

+27
-8
lines changed

11 files changed

+27
-8
lines changed

example/.vuepress/config.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,27 @@ module.exports = {
77
['meta', { name: 'viewport', content: 'width=device-width,initial-scale=1,user-scalable=no' }]
88
],
99
// theme: 'reco',
10+
locales: {
11+
'/': {
12+
lang: 'ja-JP',
13+
title: 'VuePress',
14+
description: 'Vue-powered Static Site Generator'
15+
},
16+
},
1017
theme: require.resolve('../../packages/vuepress-theme-reco'),
1118
themeConfig: {
19+
locales: {
20+
'/': {
21+
recoLocales: {
22+
homeBlog: {
23+
article: '美文', // 默认 文章
24+
tag: '标识', // 默认 标签
25+
category: '类别', // 默认 分类
26+
friendLink: '友链' // 默认 友情链接
27+
}
28+
}
29+
}
30+
},
1231
nav: [
1332
{ text: 'Home', link: '/', icon: 'reco-home' },
1433
{ text: 'TimeLine', link: '/timeline/', icon: 'reco-date' },

packages/vuepress-theme-reco/components/HomeBlog.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export default {
8787
},
8888
computed: {
8989
homeBlogCfg () {
90-
return this.$recoLocals.homeBlog
90+
return this.$recoLocales.homeBlog
9191
},
9292
actionLink () {
9393
const {

packages/vuepress-theme-reco/components/PersonalInfo.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
export default {
3131
computed: {
3232
homeBlogCfg () {
33-
return this.$recoLocals.homeBlog
33+
return this.$recoLocales.homeBlog
3434
}
3535
}
3636
}

packages/vuepress-theme-reco/enhanceApp.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import postMixin from '@theme/mixins/posts'
2-
import localMixin from '@theme/mixins/locals'
2+
import localMixin from '@theme/mixins/locales'
33

44
export default ({
55
Vue
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)