Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-17557] Titanium.Locale.currentLocale returns null

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionFixed
Resolution Date2016-07-02T06:06:50.000+0000
Affected Version/sRelease 3.3.0
Fix Version/sn/a
ComponentsiOS
LabelsTCSupport, locale, titanium
ReporterManojkumar Murugesan
AssigneeChee Kiat Ng
Created2014-08-09T13:12:17.000+0000
Updated2016-07-02T06:06:50.000+0000

Description

Problem Description

Titanium.Locale.currentLocale return undefined. It’s a bug.

Steps to reproduce

1. Create new mobile project (classic titanium) 2. Paste this code into app.js:
Ti.API.info('Titanium.Locale.currentLocale'+ Titanium.Locale.currentLocale); 
3. Run this in the simulator. 4. Check Ti Studio Console

Actual Results

Its should return simulator locale name but its return undefined

Comments

  1. Hans Knöchel 2016-07-02

    Closing as fixed, iOS-Simulator output:
       [INFO] Titanium.Locale.currentLocale: en-US
       

JSON Source