perf[i18n]: TagsView contextmenu

This commit is contained in:
Pan 2018-03-13 18:18:27 +08:00
parent f9c4dd7af3
commit a633729215
3 changed files with 13 additions and 3 deletions

View File

@ -125,5 +125,10 @@ export default {
change: 'Theme change',
documentation: 'Theme documentation',
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.'
},
tagsView: {
close: 'Close',
closeOthers: 'Close Others',
closeAll: 'Close All'
}
}

View File

@ -125,5 +125,10 @@ export default {
change: '换肤',
documentation: '换肤文档',
tips: 'Tips: 它区别于 navbar 上的 theme-pick, 是两种不同的换肤方法,各自有不同的应用场景,具体请参考文档。'
},
tagsView: {
close: '关闭',
closeOthers: '关闭其它',
closeAll: '关闭所有'
}
}

View File

@ -8,9 +8,9 @@
</router-link>
</scroll-pane>
<ul class='contextmenu' v-show="visible" :style="{left:left+'px',top:top+'px'}">
<li @click="closeSelectedTag(selectedTag)">Close</li>
<li @click="closeOthersTags">Close Others</li>
<li @click="closeAllTags">Close All</li>
<li @click="closeSelectedTag(selectedTag)">{{$t('tagsView.close')}}</li>
<li @click="closeOthersTags">{{$t('tagsView.closeOthers')}}</li>
<li @click="closeAllTags">{{$t('tagsView.closeAll')}}</li>
</ul>
</div>
</template>