K
K
kentos2019-01-21 03:13:17
Vue.js
kentos, 2019-01-21 03:13:17

How to choose a language by select?

How to choose a language by select, now I can switch to Russian, but not back

<template>
    <f7-page no-toolbar no-toolbar no-navbar left>
        <f7-block-title>{{ $t('changeLang') }}</f7-block-title>
<f7-list>
        <f7-list-item :title="$t('chooseLang')" smart-select>
            <select v-model="$i18n.locale" name="lang">
                <option value="English">English</option>
                <option :value="$t('russian')">{{ $t('russian') }}</option>
            </select>
        </f7-list-item>
    <f7-list-button link="/">{{ $t('back') }}</f7-list-button>
</f7-list>

    </f7-page>
</template>
<script>
    import { f7Page, f7LoginScreenTitle, f7List, f7ListItem, f7Label, f7Input, f7ListButton, f7BlockFooter} from 'framework7-vue';
    export default {
        components: {
            f7Page,
            f7LoginScreenTitle,
            f7List,
            f7ListItem,
            f7Label,
            f7Input,
            f7ListButton,
            f7BlockFooter,
        },
        data: {
        },
        methods: {
        },
    };
</script>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Levchenko, 2019-01-28
@nuykon

Learn to google not only in Russian!
https://stackoverflow.com/questions/46186739/using...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question