I think it would be better if this code listened for changes to the language.current setting rather than relying on the localized event to trigger the keyboard layout change.  That is, I'd probably put this code in or near to the fillLanguageList() function inside the lazyLoad() function.