TranslateProvider trying to fetch assets/en.json even if translations key is passed
toniopelo opened this issue · comments
Antoine LAFFARGUE commented
Antoine LAFFARGUE commented
Ok, finally found out that the problem is that we fetch translations if their lang object is empty (even though the key exists).
In my case I don't want to support English now but I'm not able to change the fallbackLang
. So I need to have an en
key on the translation object.
I submitted two PRs:
#197 Which allow to update the fallbackLang
(This is preferred way IMO)
#196 Optionally we could also avoid fetching translations if the key exists (whether or not they contain an empty object)
Denys Vuika commented
Thanks for the contribution!