Project: titanium
Issue TIMOB-19566: Ti.Locale.currentLanguage returns locale on iOS 9
Since iOS 9 the same Titanium SDK returns a different value for {{Ti.Locale.currentLanguage}}. It now returns the full locale instead of just the language: *app.js* {code} console.log('currentLanguage ' + Ti.Locale.currentLanguage); console.log('currentCountry ' + Ti.Locale.currentCountry); console.log('currentLocale ' + Ti.Locale.currentLocale); {code} *iOS 8.4* {code} [INFO] currentLanguage en [INFO] currentCountry US [INFO] currentLocale en-US {code} *iOS 9* {code} [INFO] currentLanguage en-US [INFO] currentCountry US [INFO] currentLocale en-US {code} *Code* * https://github.com/appcelerator/titanium_mobile/blob/master/iphone/Classes/LocaleModule.m#L26-L29 * https://github.com/appcelerator/titanium_mobile/blob/master/iphone/Classes/TiLocale.m#L32-L42 Found by Q&A user https://community.appcelerator.com/topic/3430/ti-locale-getcurrentlanguage-on-ios-9-returns-en-us-instead-en
Story points: 2