{ "id": "165045", "key": "TIMOB-24236", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2016-12-17T17:11:27.000+0000", "created": "2016-12-16T16:57:21.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "RTL" ], "versions": [], "issuelinks": [], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-24T18:03:20.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": [], "description": "We want to add new natural text alignment, already supported both iOS and Android, for Android natural is anyRtl.\r\n\r\niOS\r\nhttps://developer.apple.com/reference/uikit/uilabel/1620541-textalignment\r\n\r\nAndroid\r\nhttps://developer.android.com/reference/android/view/View.html#attr_android:textDirection\r\n\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow({\r\n layout: 'vertical'\r\n }),\r\n rtlLabel = Ti.UI.createLabel({\r\n text: \"أنقذوا حلب، أنقذوا سوريا!!\",\r\n top: 30,\r\n textAlign: Ti.UI.TEXT_ALIGNMENT_NATURAL\r\n }),\r\n ltrLabel = Ti.UI.createLabel({\r\n text: \"Save Aleppo, Save Syria!!\",\r\n top: 30,\r\n textAlign: Ti.UI.TEXT_ALIGNMENT_NATURAL\r\n });\r\n\r\nwin.add(rtlLabel);\r\nwin.add(ltrLabel);\r\n\r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "Support language natural direction text alignment", "creator": { "name": "hazemkhaled", "key": "hazemkhaled", "displayName": "Hazem Khaled", "active": true, "timeZone": "Europe/Istanbul" }, "subtasks": [], "reporter": { "name": "hazemkhaled", "key": "hazemkhaled", "displayName": "Hazem Khaled", "active": true, "timeZone": "Europe/Istanbul" }, "environment": null, "comment": { "comments": [ { "id": "403556", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Hey [~hazemkhaled], we recently changed the iOS text-alignment to be natural by default (see [this snippet|https://github.com/appcelerator/titanium_mobile/blob/master/iphone/Classes/TiUtils.m#L1354] from 6.1.0 / master), which still behaves as left-aligned text for your example. For advanced RTL-styles, use the [Ti.UI.ATTRIBUTE_WRITING_DIRECTION_RIGHT_TO_LEFT|http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI-property-ATTRIBUTE_WRITING_DIRECTION_RIGHT_TO_LEFT] attribute for attributed labels. ", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-12-17T16:13:12.000+0000", "updated": "2016-12-17T16:13:12.000+0000" }, { "id": "415619", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid with reference to the above comments.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-24T18:03:20.000+0000", "updated": "2017-03-24T18:03:20.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }