Replies: 11 comments 14 replies
-
When you say Strategy 1, 2, 3, do you mean that those are alternatives and we have to pick one or those are more like Step 1, 2, 3? From reading your description those seem more like steps.
I guess you have familiarity with that code already but as for me, I haven't played with nuxt/kit and I'm not sure how this really works. And there is no documentation for it either. What does |
Beta Was this translation helpful? Give feedback.
-
As long as someone wants to spend time on experimenting, we could try both approaches simultaneously. That is, both try to convert the code to use As for the |
Beta Was this translation helpful? Give feedback.
-
Hi, there! I've been prototyping we can check is here: I would also share the video demo of the nuxt bridge and nuxt3 below: simple i18n routing is working on nuxt bridge:nuxti18n_on_nuxt_bridge.movsimple i18n routing is working on nuxt3:nuxti18n-on-nuxt3.movI found the following in this prototyping:
I had previously suggested Step 2 and Step 3, which is a step-by-step process. In this prototyping, I have developed at the same time both of these steps. So, we can develop Step 1 can be easily supported with |
Beta Was this translation helpful? Give feedback.
-
Hi, there! 😃 I have set up a new development environment in this repository for Nuxt Bridge / Nuxt3. If you have any questions about this environment, feel free to comment. 😃 |
Beta Was this translation helpful? Give feedback.
-
Hi! |
Beta Was this translation helpful? Give feedback.
-
Hi, is there any way to use i18n module for nuxt3 now ? I tried to add https://github.com/nuxt-community/i18n-module/tree/next like |
Beta Was this translation helpful? Give feedback.
-
Any news on this? I'm on a nuxt 2 project using nuxt-bridge and vite. I've been using below for developing. Running "dependencies": {
"@nuxtjs/i18n": "npm:@nuxtjs/i18n-edge"
} When building/preparing for production I get the below error:
If I check the node_modules folder for I tried to install vue-i18-bridge separately and then the |
Beta Was this translation helpful? Give feedback.
-
Since the beginning of March, I have not been able to work much on OSS development these days due to family matter reasons. I will settle down soon 🙇♂️ |
Beta Was this translation helpful? Give feedback.
-
@kazupon Any updates? What should I do now if I use Nuxt2 + Nuxt Bridge and want to access reactive variables |
Beta Was this translation helpful? Give feedback.
-
@kazupon Any updates? What should I do now if I use Nuxt2 + Nuxt Bridge |
Beta Was this translation helpful? Give feedback.
-
Use version 7.X for Nuxt Bridge. Latest version 8.x as @GMartigny is pointing out, dropped support for Nuxt Bridge. |
Beta Was this translation helpful? Give feedback.
-
I have come up with the following development step for
@nuxtjs/i18n
to migrate seamlessly to nuxt3 and would like to discuss if it is feasible.Summary
Step 1
This step only implements loading the existing version of
@nuxtjs/i18n
in a single order.We can use
installModule
in@nuxt/kit
to achieve this.This is all you need to do to make it work as a nuxt2 module and keep backward compatibility.
In other words, this new
@nuxtjs/i18n
is just a wrapper nuxt module.Step 2
This step implements a bridge for nuxt3 to work in the nuxt-bridge environment.
The
nuxt bridge
is an environment that works Vue 2 runtime and backports the Composition API of nuxt 3.We will implement in this step the following:
@nuxtjs/i18n
.vue-i18n-bridge
and implementing (tweaking of existing@nuxt/i18n
) with it.@nuxt/composition-api
(@vue/composition-api
) andvue-i18n-bridge
Composition API.The
nuxt-bridge
provides a runtime that is almost identical to nuxt2.Backward compatibility is maintained by loading existing versions of
@nuxtjs/i18n
.vue-i18n-bridge
has the Composition API backported fromvue-i18n-next
.We can install
vue-i18n-bridge
, and then can use@nuxt/composition-api
backported from nuxt3 to implement the Composition API working with nuxt3.If there are any other backports from nuxt3 for nuxt-bridge, they will be implemented as well.
Step 3
In this step, we will implement it to work in the nuxt3 environment.
vue-i18n-next
and implementation (tweaking) using itSince the Composition API and other birding for nuxt3 have been implemented in Step2, there is almost no need to deal with it.
We only need to implement it to work with nuxt3.
PoC examples
My PoC example repo is here:
https://github.com/kazupon/nuxt-i18n-next
It is not possible to run it using vite because of the following issue
https://github.com/nuxt/framework/issues/1461
Disclaimer: About new features
There are some exciting features, such as Nitro engine, that will not be discussed in this proposal.
Beta Was this translation helpful? Give feedback.
All reactions