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

Cannot disable warnHtmlMessage #1970

Closed
memic84 opened this issue Mar 30, 2023 · 5 comments
Closed

Cannot disable warnHtmlMessage #1970

memic84 opened this issue Mar 30, 2023 · 5 comments
Labels

Comments

@memic84
Copy link

memic84 commented Mar 30, 2023

Environment

  • Operating System: Darwin
  • Node Version: v16.14.2
  • Nuxt Version: 3.3.2
  • Nitro Version: 2.3.2
  • Package Manager: yarn@1.22.19
  • Builder: vite
  • User Config: -
  • Runtime Modules: -
  • Build Modules: -

Reproduction

Just use some html tags in your locales values.

Describe the bug

I have tried to add warnHtmlMessage and the other variant, to both the nuxt config i18n and vueI18n, but nothing changes, i keep ketting these errors

ERROR  [unplugin-vue-i18n]

This happend first when i switched to the edge version, on beta.9 this didn't happen. Has something changed in between?

Additional context

No response

Logs

No response

@lukaszflorczak
Copy link

I have the same problem. The latest working version is npm:@nuxtjs/i18n-edge@8.0.0-beta.10-27985006.4ff543e

@memic84
Copy link
Author

memic84 commented Mar 31, 2023

Same here, also haven't found anything in the last commits that could have caused this.
Also checkout out the source code, and no mention of the warnHtmlMessage or such.

My best guest, is that it's a option that gets passed to the VueI18n?

Copy link
Collaborator

kazupon commented Mar 31, 2023

I think you need to configure precompile option.
docs here:
https://v8.i18n.nuxtjs.org/options/misc#precompile

That option was supported in this commit
c0b701c#diff-a37a61944287c52dcb3c22edfe922d38fc02c80a592d903935f3fdfd683807ccR25

@memic84
Copy link
Author

memic84 commented Mar 31, 2023

It works, thank you!

@memic84 memic84 closed this as completed Mar 31, 2023
@letoast
Copy link

letoast commented Feb 11, 2024

I think you need to configure precompile option. docs here: https://v8.i18n.nuxtjs.org/options/misc#precompile

That option was supported in this commit c0b701c#diff-a37a61944287c52dcb3c22edfe922d38fc02c80a592d903935f3fdfd683807ccR25

You have changed this to a key called "compilation", "precompile" doesn't exist anymore.
https://v8.i18n.nuxtjs.org/options/compilation#strictmessage

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

4 participants