vue-i18n,'TypeError: _vm.$t is not a function'

267 views Asked by At

I'm using Vue 2.6.14 and vue-i18n 6.1.3 I can't figure it out how to put i18n translation in error.

When I first entered the page is normal,but there is an error after refresh

TypeError: _vm.$t is not a function

in entry-client.ts

import { ClientOptions } from '@fmfe/genesis-core';
import { createClientApp } from '@fmfe/genesis-app';
import i18n from './langurage';
import Vue from 'vue';
import App from './app.vue';

export default async (clientOptions: ClientOptions): Promise<Vue> => {

    return createClientApp({
        App,
        clientOptions,
        vueOptions: {
            i18n
        }
    });
};

Because I don't know much about the system architecture, so I don't know how to go to mount i18n

0

There are 0 answers