Skip to content
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

i18n lazy loading does not work #9

Open
jofmi opened this issue Nov 28, 2023 · 0 comments
Open

i18n lazy loading does not work #9

jofmi opened this issue Nov 28, 2023 · 0 comments
Labels
bug Something isn't working nuxt

Comments

@jofmi
Copy link
Contributor

jofmi commented Nov 28, 2023

If I set i18n: {lazy:true} in nuxt.config.ts, it is not possible to switch languages.

I think this is because @nuxtjs/i18n does not support lazy loading together with the strategy no_prefix.

Possible solution: Trigger a script to load language when the language switch is used.

@jofmi jofmi added the bug Something isn't working label Nov 28, 2023
@jofmi jofmi changed the title bug: i18n lazy loading not working i18n lazy loading not working Nov 28, 2023
@jofmi jofmi changed the title i18n lazy loading not working i18n lazy loading does not work Nov 28, 2023
@jofmi jofmi added the nuxt label Nov 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working nuxt
Projects
Status: Todo
Development

No branches or pull requests

1 participant