diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2018-11-09 03:44:35 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-11-09 03:44:35 +0900 |
| commit | 25a69ec1b69cb7f380949ef9cf1c3599eaa4face (patch) | |
| tree | 6f10016d32f94140d3953446c4b1fdb474e216e8 /src/client/app/common/views/components/github-setting.vue | |
| parent | Update CircleCI configuration (#3163) (diff) | |
| download | sharkey-25a69ec1b69cb7f380949ef9cf1c3599eaa4face.tar.gz sharkey-25a69ec1b69cb7f380949ef9cf1c3599eaa4face.tar.bz2 sharkey-25a69ec1b69cb7f380949ef9cf1c3599eaa4face.zip | |
Refactoring of i18n (#3165)
Refactoring of i18n
Diffstat (limited to 'src/client/app/common/views/components/github-setting.vue')
| -rw-r--r-- | src/client/app/common/views/components/github-setting.vue | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/client/app/common/views/components/github-setting.vue b/src/client/app/common/views/components/github-setting.vue index f79a700a92..f9bb0e69d2 100644 --- a/src/client/app/common/views/components/github-setting.vue +++ b/src/client/app/common/views/components/github-setting.vue @@ -1,11 +1,11 @@ <template> <div class="mk-github-setting"> - <p>%i18n:@description%<a :href="`${docsUrl}/link-to-github`" target="_blank">%i18n:@detail%</a></p> - <p class="account" v-if="$store.state.i.github" :title="`GitHub ID: ${$store.state.i.github.id}`">%i18n:@connected-to%: <a :href="`https://github.com/${$store.state.i.github.login}`" target="_blank">@{{ $store.state.i.github.login }}</a></p> + <p>{{ $t('description') }}<a :href="`${docsUrl}/link-to-github`" target="_blank">{{ $t('detail') }}</a></p> + <p class="account" v-if="$store.state.i.github" :title="`GitHub ID: ${$store.state.i.github.id}`">{{ $t('connected-to') }}: <a :href="`https://github.com/${$store.state.i.github.login}`" target="_blank">@{{ $store.state.i.github.login }}</a></p> <p> - <a :href="`${apiUrl}/connect/github`" target="_blank" @click.prevent="connect">{{ $store.state.i.github ? '%i18n:@reconnect%' : '%i18n:@connect%' }}</a> + <a :href="`${apiUrl}/connect/github`" target="_blank" @click.prevent="connect">{{ $store.state.i.github ? this.$t('reconnect') : this.$t('connect') }}</a> <span v-if="$store.state.i.github"> or </span> - <a :href="`${apiUrl}/disconnect/github`" target="_blank" v-if="$store.state.i.github" @click.prevent="disconnect">%i18n:@disconnect%</a> + <a :href="`${apiUrl}/disconnect/github`" target="_blank" v-if="$store.state.i.github" @click.prevent="disconnect">{{ $t('disconnect') }}</a> </p> <p class="id" v-if="$store.state.i.github">GitHub ID: {{ $store.state.i.github.id }}</p> </div> @@ -13,9 +13,11 @@ <script lang="ts"> import Vue from 'vue'; +import i18n from '../../../i18n'; import { apiUrl, docsUrl } from '../../../config'; export default Vue.extend({ + i18n: i18n('common/views/components/github-setting.vue'), data() { return { form: null, |