Skip to content

Commit b56f3de

Browse files
author
reco_luan
authored
Merge pull request #222 from mkfsn/feature/locale-tag-label
feat(vuepress-theme-reco): add tag locale
2 parents ef29a4c + 7a71221 commit b56f3de

File tree

7 files changed

+18
-3
lines changed

7 files changed

+18
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export default {
2121
},
2222
computed: {
2323
tags () {
24-
return [{ name: '全部', path: '/tag/' }, ...this.$tags.list]
24+
return [{ name: this.$recoLocales.tag.all, path: '/tag/' }, ...this.$tags.list]
2525
}
2626
},
2727
methods: {

packages/vuepress-theme-reco/layouts/Tags.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ export default {
4444
data () {
4545
return {
4646
tags: [],
47-
currentTag: '全部',
47+
currentTag: this.$recoLocales.tag.all,
4848
currentPage: 1,
49-
allTagName: '全部'
49+
allTagName: this.$recoLocales.tag.all
5050
}
5151
},
5252

packages/vuepress-theme-reco/locales/en.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,8 @@ export default {
44
tag: 'Tag',
55
category: 'Category',
66
friendLink: 'Friend Link'
7+
},
8+
tag: {
9+
all: 'All'
710
}
811
}

packages/vuepress-theme-reco/locales/ja.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,8 @@ export default {
44
tag: 'ラベル',
55
category: '分類',
66
friendLink: '友情リンク'
7+
},
8+
tag: {
9+
all: '全部'
710
}
811
}

packages/vuepress-theme-reco/locales/ko.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,8 @@ export default {
44
tag: '태그',
55
category: '분류',
66
friendLink: '링크 참조'
7+
},
8+
tag: {
9+
all: '전체'
710
}
811
}

packages/vuepress-theme-reco/locales/zh-hans.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,8 @@ export default {
44
tag: '标签',
55
category: '分类',
66
friendLink: '友情链接'
7+
},
8+
tag: {
9+
all: '全部'
710
}
811
}

packages/vuepress-theme-reco/locales/zh-hant.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,8 @@ export default {
44
tag: '標簽',
55
category: '分類',
66
friendLink: '友情鏈接'
7+
},
8+
tag: {
9+
all: '全部'
710
}
811
}

0 commit comments

Comments
 (0)