[TIMOB-26691] iOS: Ti.Locale.setLanguage('ar') doesn't change the UI flow of the native elements.
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | n/a |
| Status | Open |
| Resolution | Unresolved |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | n/a |
| Labels | n/a |
| Reporter | Prashant Saini |
| Assignee | Eric Merriman |
| Created | 2018-11-18T13:56:40.000+0000 |
| Updated | 2019-01-04T22:44:39.000+0000 |
Description
Attachments
| File | Date | Size |
|---|---|---|
| android-ar.png | 2018-11-18T13:53:00.000+0000 | 18851 |
| android-en.png | 2018-11-18T13:53:00.000+0000 | 18548 |
| ios-ar.png | 2018-11-18T13:56:09.000+0000 | 25370 |
| ios-en.png | 2018-11-18T13:56:09.000+0000 | 25281 |
| ios-settings-ar.png | 2018-11-18T13:53:00.000+0000 | 32384 |
| ios-settings-en.png | 2018-11-18T13:53:00.000+0000 | 37129 |
iOS does not change the layout automatically when changing the locale (native behavior). You can use this one-liner in Hyperloop to force RTL:
import {UIView, UISemanticContentAttributeForceRightToLeft} from 'UIKit'; UIView.appearance().semanticContentAttribute = UISemanticContentAttributeForceRightToLeftGetting this error while using the above code: {noformat} [ERROR] : An error occurred during build after 28s 504ms [ERROR] : The iOS class "UISemanticContentAttributeForceRightToLeft" could not be found in the framework "UIKit"... {noformat}