changed to ensure passes locale value is retained in i18n.js with test
added test to ensure null is set as well
Merge pull request #6 from harpalsingh/ui_1834

UI-1834