{ "id": "170155", "key": "AC-5313", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "8", "description": "", "name": "Needs more info" }, "resolutiondate": "2017-11-19T20:53:21.000+0000", "created": "2017-10-27T10:08:24.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-11-19T20:53:21.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "We have a multi-lingual app. Supporting EN, EN-gb, EN-us, DE, FR, PT, JA and ES\r\n(English, British English, American English, German, French, Portuguese and Spanish)\r\n\r\nOur i18n files are the following: de, en, en-gb, en-US, es, fr, ja, pt. .XML files.\r\n\r\nLetting the app automatically select the language if the user is in the UK or US correctly sets en-gb or en-US.\r\n\r\nGiving the user the chance to manually change their language using Ti.Locale.setLanguage(\"en\") on iOS only accepts an ISO 639-1 country code, eg \"en\". We've then found it chooses the first file it finds in the i18n folder that matches it - \"en\". So when manually setting right now it does not allow country specific languages, eg American English. \r\n\r\nYou would assume it would pick up the country code that a user is in after the language is selected, eg en-US, en-GB. \r\n\r\nDeleting the country \"en\" .xml file from the i18n folder, to test if this will fix it does not work as then en's root is missing and sets the language to the next iso language alphabetically in the list (Which is DE - German).\r\n", "attachment": [], "flagged": false, "summary": "Ti.Locale.setLanguage(\"en\") does not select iso country code regions eg en-US, en-GB - Defaults to en. ", "creator": { "name": "mbuxton", "key": "mbuxton", "displayName": "Michael Buxton", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "mbuxton", "key": "mbuxton", "displayName": "Michael Buxton", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "TiSDK 5.X to 6.3.0 RC on iOS", "comment": { "comments": [ { "id": "429768", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, Can you provide a sample app which demonstrates the behavior? Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2017-10-28T19:36:26.000+0000", "updated": "2017-10-28T19:36:26.000+0000" }, { "id": "430698", "author": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "\r\nHello [~mbuxton],
Just passing a followup here.Are you able to get that sorted out?  Please let us know if you need more help with this issue.\r\n\r\nRegards
\r\nAxway Appcelerator Support", "updateAuthor": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2017-11-15T09:38:33.000+0000", "updated": "2017-11-15T09:38:33.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }