* i18n: add ja.yaml * i18n: polish zh-cn.yaml, apply ja.yaml to i18n * i18n: use the languages themselves to describe languges Former-commit-id: 4496525cc830c216264c9522569648f75413267c [formerly 552b9547f59779ae5c8d2a856ece402da9dcd509] [formerly 85f0848675510d3b25bb991eb75ac10e04cdf3d9 [formerly 7526f72379c736bca71d90fb19740c2147e6451a]] Former-commit-id: 73a84da80139e9f8be77e39f620165dc938f6820 [formerly 8178a9cba22362fdf4fa29331fd07127169e8980] Former-commit-id: 660bee270208abeebfca96fff2adba62e1bccbf3
21 lines
503 B
Vue
21 lines
503 B
Vue
<template>
|
|
<select v-on:change="change" :value="selected">
|
|
<option value="en">{{ $t('languages.en') }}</option>
|
|
<option value="pt">{{ $t('languages.pt') }}</option>
|
|
<option value="ja">{{ $t('languages.ja') }}</option>
|
|
<option value="zh-cn">{{ $t('languages.zhCN') }}</option>
|
|
</select>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name: 'languages',
|
|
props: [ 'selected' ],
|
|
methods: {
|
|
change (event) {
|
|
this.$emit('update:selected', event.target.value)
|
|
}
|
|
}
|
|
}
|
|
</script>
|