Project: titanium
Issue TIMOB-12457: iOS: Ti.Locale.currentLocale and currentCountry issues
h6.Ti.Locale issue Ti.Locale is NOT working as expected after reading the doc. h6.Expected currentLocale and getCurrentLocale() to work like language i.e. http://docs.appcelerator.com/titanium/latest/#!/api/Titanium.Locale-method-getCurrentLocale h6.Repro sequence {code} Ti.API.error("locale: " + Ti.Locale.currentLocale); Ti.API.error("country: " + Ti.Locale.currentCountry); Ti.API.error("language: " + Ti.Locale.currentLanguage); Ti.API.error("locale: " + Ti.Locale.getCurrentLocale()); Ti.API.error("country: " + Ti.Locale.getCurrentCountry()); Ti.API.error("language: " + Ti.Locale.getCurrentLanguage()); {code} h6.returns {code} [ERROR] locale: undefined [ERROR] country: undefined [ERROR] language: fr [ERROR] locale: fr-BE [ERROR] country: BE [ERROR] language: fr {code} h6.yet another console output {code} [ERROR] :  locale: undefined [ERROR] :  country: undefined [ERROR] :  language: en [ERROR] :  locale: en-US [ERROR] :  country: US [ERROR] :  language: en {code} I am not competent enough in objective-C and mobile SDK knowledge but the implementation of locale module here looks fishy to me (I would expect implementations for currentLocale and currentCountry). I tested w/ SDKs 1.8.2, 2.1.2.GA and 3.0.0.GA on Mac OSX for iOS.
Story points: 2