Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign uptranslation warning still shows after adding a missing handler #831
Comments
|
I think it is reasobale to show warning even when missing handler is used, since the message warns developers (or translators) some message key are not translated yet. Could you tell the motivation to hide the message when missing handler is used on development mode ? |
|
its ok, just that the doc is saying it will not warn.
|
|
Ah, I see it is documentation issue. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
vue & vue-i18n version
8.15.4
Steps to reproduce
add missing handler:
i18n.missing = (locale: Locale, key: Path) => {
if (i18n.te(key, i18n.fallbackLocale)) {
return i18n.t(key, i18n.fallbackLocale).toString();
}
return ''; // instead of showing the key + warning
};
What is Expected?
no warnings about missing key
What is actually happening?
console log shows:
vue-i18n.esm.js?a925:33 [vue-i18n] Value of key 'xxx' is not a string!