Closed Quadrubo closed 1 year ago
Will review that one thanks for the issue.
I am experiencing the same issue. I think it could be fixed in setLanguege method.
Instead of setting this.activeMessages[key] = null
better use the fallbackLang and those messages to be kept in fallbackMessages
this.activeMessages[key] = this.fallbackMessages[key] || null
It would comet with the drawback that fallback lang must always be loaded and extra memory usage due to keeping them in fallbackMessages
Hey @lenssoft if you can, please submit a PR for that, and I will review it.
Thanks.
Fixed on #103
The FallbackLocale option is not working correctly.
I would expect the
trans
function to use the fallbackLocale. Instead it echoes out the translation string.