kazupon/vue-i18n

silentFallbackWarn does not silent linked locale messages fallback warn

開放

#933 建立於 2020年7月13日

 (1 則留言) (6 個反應) (0 位負責人)JavaScript (838 個分叉)batch import
Type: Bughelp wanted

倉庫指標

星標
 (7,222 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

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.

貢獻者指南