Server-side translations don't work with yaml files #2606
Labels
nitro
🔨 p3-minor-bug
Priority 3: a bug in an edge case that only affects very specific usage
server-side
v8
Environment
Reproduction
https://stackblitz.com/edit/bobbiegoede-nuxt-i18n-starter-jxx5u7?file=nuxt.config.ts
Describe the bug
When setting up server-side translation as per the docs, and using
.yaml
files as locale files, the app crashes.Additional context
nuxt.config.ts
:Content of
locales/en.yaml
:I suspect that an improper parser is being used: the above file is a valid yaml file and works well with client-side translations. And when adding quotes around the strings in the yaml files (i.e. Hello -> "Hello"), the app loads (... but there is another bug ...)
Logs
The text was updated successfully, but these errors were encountered: