vue-i18n icon indicating copy to clipboard operation
vue-i18n copied to clipboard

silentFallbackWarn does not silent linked locale messages fallback warn

Open vhoyer opened this issue 4 years ago • 1 comments

vue & vue-i18n version

vue-i18n v8.18.2 Vue.js v2.6.11

Reproduction Link

https://jsfiddle.net/Lt4vp8x0/

Steps to reproduce

Have a sub-component that implements component based localization. Turn silentFallbackWarn to true, and run the fiddle.

You should see in the console that vue-i18n is still giving out warnings, but, as the tests states: https://github.com/kazupon/vue-i18n/blob/f42e81f65a88eeeccc311b970d2d4fd4181712ed/test/unit/silent.test.js#L93-L114, I should not do it.

What is Expected?

No fallback warnings, there are even tests for this behavior: https://github.com/kazupon/vue-i18n/blob/f42e81f65a88eeeccc311b970d2d4fd4181712ed/test/unit/silent.test.js#L93-L114, I should not do it.

What is actually happening?

I'm seeing fallback warn messages.

vhoyer avatar Jul 13 '20 12:07 vhoyer

Yes this is annoying. I don't even understand why I have these warning as it clearly work.

[vue-i18n] Fall back to translate the link placeholder 'app.platform_name' with root locale. [vue-i18n] Fall back to translate the link placeholder 'app.platform_owner' with root locale.

For now, you do not have the rights to visit @:app.platform_name by @:app.platform_owner get interpoled as For now, you do not have the rights to visit EEQ Plateform by École des entrepreneurs du Québec which is the expected result.

mrleblanc101 avatar Sep 22 '21 17:09 mrleblanc101