Skip to content

Commit a633729

Browse files
committed
perf[i18n]: TagsView contextmenu
1 parent f9c4dd7 commit a633729

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

src/lang/en.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,5 +125,10 @@ export default {
125125
change: 'Theme change',
126126
documentation: 'Theme documentation',
127127
tips: 'Tips: It is different from the theme-pick on the navbar is two different skinning methods, each with different application scenarios. Refer to the documentation for details.'
128+
},
129+
tagsView: {
130+
close: 'Close',
131+
closeOthers: 'Close Others',
132+
closeAll: 'Close All'
128133
}
129134
}

src/lang/zh.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,5 +125,10 @@ export default {
125125
change: '换肤',
126126
documentation: '换肤文档',
127127
tips: 'Tips: 它区别于 navbar 上的 theme-pick, 是两种不同的换肤方法,各自有不同的应用场景,具体请参考文档。'
128+
},
129+
tagsView: {
130+
close: '关闭',
131+
closeOthers: '关闭其它',
132+
closeAll: '关闭所有'
128133
}
129134
}

src/views/layout/components/TagsView.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
</router-link>
99
</scroll-pane>
1010
<ul class='contextmenu' v-show="visible" :style="{left:left+'px',top:top+'px'}">
11-
<li @click="closeSelectedTag(selectedTag)">Close</li>
12-
<li @click="closeOthersTags">Close Others</li>
13-
<li @click="closeAllTags">Close All</li>
11+
<li @click="closeSelectedTag(selectedTag)">{{$t('tagsView.close')}}</li>
12+
<li @click="closeOthersTags">{{$t('tagsView.closeOthers')}}</li>
13+
<li @click="closeAllTags">{{$t('tagsView.closeAll')}}</li>
1414
</ul>
1515
</div>
1616
</template>

0 commit comments

Comments
 (0)