Project: titanium
Issue TIMOB-23296: Windows: Implement Ti.Locale.setLanguage
Both iOS and Android supports Ti.Locale.setLanguage, however the function is not documented. Is it supposed to be supported or is it deprecated? *Test code* {code} var win = Ti.UI.createWindow({ backgroundColor: 'green' }); win.addEventListener('open', function () { Ti.Locale.setLanguage('en'); Ti.API.info('current language is: ' + Ti.Locale.getCurrentLanguage()); Ti.API.info('before change ' + L('this is my key')); Ti.Locale.setLanguage('en-GB'); Ti.API.info('new language is: ' + Ti.Locale.getCurrentLanguage()); Ti.API.info('after change ' + L('this is my key')); }); win.open(); {code} {code:title=i18n/en/strings.xml} this is my value {code} {code:title=i18n/en-GB/strings.xml} this is my en-GB value {code}
Story points: 5