vue-i18n
vue-i18n copied to clipboard
Add a way to suppress the console.warn message about 'allowComposition' in v9.3.0
Clear and concise description of the problem
In version 9.3.0, this console.warn message is shown every time we instantiate the plugin with createI18n.
[intlify] 'allowComposition' option will be dropped in the next major version. For more information, please see 👉 https://tinyurl.com/2p97mcze
This causes our unit test reports to be very noisy, as the message shows once per unit test.
We are also unable to quickly turn off allowComposition at this time (we have a very large codebase with a mix of Options and Composition API) and we may have to stay on v9 as we don't want to migrate every component to the Composition API, especially since the Options API is a valid way to develop with Vue, and is not being deprecated.
Suggested solution
It would be great if there was an option to suppress this warning with an option, or an environment variable.
Alternative
No response
Additional context
We can't downgrade to an earlier version of vue-i18n-next as we need the TypeScript fixes in 9.3.0.
Validations
- [X] Read the Contributing Guidelines
- [X] Read the Documentation
- [X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.