-
-
Notifications
You must be signed in to change notification settings - Fork 483
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
Add i18n in context #1112
Comments
Should work with |
Bonjour, merci pour la reponse. Cependant, j'ai vu avec @pi0 qui m'a demande d'ouvrir un ticket pour l'ajouter directement dans le context |
Can do that but that's not specific to composition API so updated the title. BTW. Currently
So I'm not entirely sure if I should expose all of those in |
The APIs that were exposed on `context.app`, like: - `i18n` - `getRouteBaseName` - `localePath` - `localeRoute` - `switchLocalePath` are now also exposed directly on `context`. Resolves #1112
The APIs that were exposed on `context.app`, like: - `i18n` - `getRouteBaseName` - `localePath` - `localeRoute` - `switchLocalePath` are now also exposed directly on `context`. Resolves #1112
Is your feature request related to a problem? Please describe.
I recently discovered a new feature of View 3: The Composition API. So I learned about the existence of the Nuxt Composition API module. So I want to adapt my current site with this functionality, however the i18n module is not yet compatible.
Describe the solution you'd like
I wanted to access the i18n module inside the context method.
Describe alternatives you've considered
Actually, I have added the type inside the 'index.d.ts' file to access the i18n module directly from the context but I dont know if it is the best way
Additional context
https://codesandbox.io/s/github/ArthurDanjou/artsite/tree/dev for testing and seeing what i have test
The text was updated successfully, but these errors were encountered: