Open casperboone opened 8 months ago
I have this error when translations are too long, if I use multiline yaml it kinda works
This is happening because of devtools Debugging the parameters received here at yamlParse found this in my local project
the value is equal to:
text: "My text with html <b data-v-inspector="components/exmaple/index.vue:20:33">{text}</b>"
Devtools parsed
// nunxt.config.ts
...
devtools: {
enabled: true,
componentInspector: false,
}
...
Reporting a bug?
I'm trying to use short bits of html for text formatting in Nuxt. However, the
yaml-eslint-parser
package that is used does not seem to allow that. It throws an error saying "Unexpected scalar token". I tried changing the formatting from yaml to json, but that does not seem to have any effect, since theyaml-eslint-parser
seems to be used for both cases.Expected behavior
Parsing the translation values regardless of its HTML content, when
strictMessage
is disabled.Reproduction
https://github.com/casperboone/nuxt-i18n-sfc-html-bug-reproduction
Issue Package
vite-plugin-vue-i18n
System Info
Screenshot
No response
Additional context
Validations