-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to config vue-i18n v-t directive with nuxt ? #1826
Comments
Why don't just use |
@cretueusebiu I'm using now but i wanna PERFORMANCEEE http://kazupon.github.io/vue-i18n/en/directive.html#t-vs-v-t |
You can check the example. 👀 |
And the compiler module. |
@kazupon Thanks i got it to work now, how could i load i18n as a plugin ? Is it somehow possible ? I would like to use vuex to define locale option. But i can't access store in config.
EDIT: I can't keep the locale without refresh, and adonisjs sends to vuex the locale that is set from server EDIT2: It seems i have to wire a module for i18n ? But how can i access i18n plugin in module. My code goes like this =>
|
Accessing the store, @alanaasmaa: export default ({ app, isClient, store }) => {
app.i18n = new VueI18n({
locale: store.state.locale,
fallbackLocale: 'en',
messages
});
}; A little bit different than what the author of vue-i18n, @kazupon, suggests in: kazupon/vue-i18n@44d4ebe#diff-e635ad7197be34317008bbbec46c7b7b |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I just cant figure it out.
Here is an example:
https://github.com/kazupon/vue-i18n-extensions
The text was updated successfully, but these errors were encountered: