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

[next] js-Files do not get imported #1462

Closed
2 tasks
timgoeller opened this issue Jun 29, 2022 · 2 comments
Closed
2 tasks

[next] js-Files do not get imported #1462

timgoeller opened this issue Jun 29, 2022 · 2 comments
Labels

Comments

@timgoeller
Copy link

Version

@nuxtjs/i18n: 8.0.0-alpha.0-27596800.2df94e2
nuxt: 3.0.0-rc.4

Nuxt configuration

Please change to [x] if relevant for this issue:

  • Applies to a site deployed to a static server (site generated with nuxt generate)
  • Applies to a site deployed to a server with a Node backend

Steps to reproduce

Create a js file for a language, eg. en.js that returns the messages.

What is actually happening?

It seems like these files are mostly ignored right now, because the resolveLocales method in the utils only resolves json,json5,yaml,yml. It does work when I just add js there. Is there some more implementation work needed, or would that solve the issue? Or am I missing some configuration on my part?

@renardsas
Copy link

renardsas commented Jul 9, 2022

@timgoeller , js file is not available yet.
See this file :
https://github.com/nuxt-community/i18n-module/blob/next/TODO.md
Screenshot 2022-07-09 at 10-55-45 nuxt-community_i18n-module at next

See : #1448

@huang-julien
Copy link
Contributor

i see the lazy-load checkbox being checked, is it still planned to add the JS file support with async functions ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants