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
js-coder edited this page Dec 25, 2012
·
1 revision
Dealing with missing translations
When x18n is asked to retrieve a missing translation it will try to find the translation in similiar locale dictionaries and report the missing translation:
The x18n.missingTranslations object contains the missing translations.
The missing-translation event will be triggered whenever a missing translation is requested. You can handle it like this:
x18n.on('missing-translation',function(locale,key){console.log(locale+" doesn't have a translation for "+key);});