Skip to content

bug(i18n): locale keys aren't loaded properly #104

@BenjaminOddou

Description

@BenjaminOddou

Hello @larbish,

I made some tests in production with the latest commit as of today :

package.json

{
  "dependencies": {
    "nuxt-studio": "https://pkg.pr.new/nuxt-content/studio/nuxt-studio@bdd5e1d"
  }
}

nuxt.config.ts

  studio: {
    i18n: {
      defaultLocale: 'fr',
    },
  },

It seems that some keys aren't loaded correctly and I can't figure out why.

Image

Could this be linked to your comment here : #70 (comment) ?

  • Relocate locale files to module/src/locales/ to ensures locale files are bundled with the module at build time (imports from app/src/locales/ wouldn't work in production)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions