You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 29, 2024. It is now read-only.
Hi,
sometimes it occurs that a few translations are missing in one language but we have to wait to get them. I known that i can log those missing translations using the useMissingTranslationHandler but what i would like to do the following:
i've defined en-GB as my preferred language, the user changes the language to fr but in the translation table there are a few translationIDs missing, is it actually possible to load the en_GB translations only for those missing translationIDs ?
i've managed to do it (quite dirty i think...) by adding the following code right after your "var translation=..." in the provider
Hey @lanlau! I think this is a great feature we should provide. There was already the idea to have a fallback language, when I was presenting angular-translate at a local meetup.
Let's make a new feature of it! I think we should introduce something like
$translateProvider.fallbackLanguage(langKey)
So if you current workaround works for you, stick with it, until this feature is implemented. :) You could also speed up the process by providing a Pull Request by yourself (which is always awesome) :)
So congrats to your first PR :) I'd love to get you in the OSS world by merging this one, I've commented a few lines of code on the commit. Check the PR for mor information.
Hi,
sometimes it occurs that a few translations are missing in one language but we have to wait to get them. I known that i can log those missing translations using the useMissingTranslationHandler but what i would like to do the following:
i've defined en-GB as my preferred language, the user changes the language to fr but in the translation table there are a few translationIDs missing, is it actually possible to load the en_GB translations only for those missing translationIDs ?
i've managed to do it (quite dirty i think...) by adding the following code right after your "var translation=..." in the provider
would you have a better solution ?
thanks for all the work done is this fabulous module !
The text was updated successfully, but these errors were encountered: