i18n: complete translations
This commit is contained in:
parent
f8420efb34
commit
19d46b360a
@ -2,10 +2,10 @@
|
|||||||
<div class="confirm-button">
|
<div class="confirm-button">
|
||||||
<div class="confirm-button__content" @click="click">
|
<div class="confirm-button__content" @click="click">
|
||||||
<div v-if="hasSelection" class="confirm-button__content__has-selection">
|
<div v-if="hasSelection" class="confirm-button__content__has-selection">
|
||||||
Save
|
{{ $t('save-selection') }}
|
||||||
</div>
|
</div>
|
||||||
<div v-else class="confirm-button__content__no-selection">
|
<div v-else class="confirm-button__content__no-selection">
|
||||||
skip round
|
{{ $t('skip-round') }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -13,6 +13,12 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
|
beforeMount() {
|
||||||
|
this.$i18n.map({
|
||||||
|
'save-selection': { de: 'Speichern', en: 'save' },
|
||||||
|
'skip-round': { de: 'überspringen' ,en: 'skip round' },
|
||||||
|
})
|
||||||
|
},
|
||||||
computed: {
|
computed: {
|
||||||
hasSelection() {
|
hasSelection() {
|
||||||
return Object.keys(this.$store.state.selection.selection).length > 0
|
return Object.keys(this.$store.state.selection.selection).length > 0
|
||||||
|
@ -18,9 +18,9 @@
|
|||||||
type="text"
|
type="text"
|
||||||
size="6"
|
size="6"
|
||||||
maxlength="6"
|
maxlength="6"
|
||||||
placeholder="code"
|
:placeholder="$t('auth-code')"
|
||||||
/>
|
/>
|
||||||
<Button :disabled="loginDisabled" @click="login">Go</Button>
|
<Button :disabled="loginDisabled" @click="login">{{ $t('login-go') }}</Button>
|
||||||
<div class="playbutton__errormessage" v-if="errorMessage">
|
<div class="playbutton__errormessage" v-if="errorMessage">
|
||||||
{{ errorMessage }}
|
{{ errorMessage }}
|
||||||
</div>
|
</div>
|
||||||
@ -34,6 +34,8 @@ export default {
|
|||||||
beforeMount() {
|
beforeMount() {
|
||||||
this.$i18n.map({
|
this.$i18n.map({
|
||||||
'hi': { de: 'Hallo', en: 'Hi' },
|
'hi': { de: 'Hallo', en: 'Hi' },
|
||||||
|
'auth-code': { de: 'Code', en: 'code' },
|
||||||
|
'login-go': { de: 'Los', en: 'Go' },
|
||||||
'play-button': { de: 'Spielen!', en: 'Play!' },
|
'play-button': { de: 'Spielen!', en: 'Play!' },
|
||||||
'logout': { de: 'Ausloggen/Sitzung wechseln', en: 'logout/switch session' },
|
'logout': { de: 'Ausloggen/Sitzung wechseln', en: 'logout/switch session' },
|
||||||
})
|
})
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
export default {
|
export default {
|
||||||
beforeMount() {
|
beforeMount() {
|
||||||
this.$i18n.map({
|
this.$i18n.map({
|
||||||
'video-user': { de: 'Erklärvideo (3min)', en: 'Video (3 mins)' },
|
'video-user': { de: 'Erklärvideo (3min)', en: 'Video (3 mins, german)' },
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user