In our Vue application, we load translations dynamically. Our strings will appear as codes/expressions before they arrive from the server.
Is there some way to tell Vue-i18n
to default to blank if no message is loaded? Or can I override something to return an empty string?
You can achieve this by adding the
fallbackLocale
attribute in theVueI18n
initialization.As in the demo below, locale
ja
is not available, therefore, it loadsfallbackLocale
(I added empty strings in all properties of the default locale). p>Live Demo: