Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-26691] iOS: Ti.Locale.setLanguage('ar') doesn't change the UI flow of the native elements.

GitHub Issuen/a
TypeBug
Priorityn/a
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterPrashant Saini
AssigneeEric Merriman
Created2018-11-18T13:56:40.000+0000
Updated2019-01-04T22:44:39.000+0000

Description

Attachments

FileDateSize
android-ar.png2018-11-18T13:53:00.000+000018851
android-en.png2018-11-18T13:53:00.000+000018548
ios-ar.png2018-11-18T13:56:09.000+000025370
ios-en.png2018-11-18T13:56:09.000+000025281
ios-settings-ar.png2018-11-18T13:53:00.000+000032384
ios-settings-en.png2018-11-18T13:53:00.000+000037129

Comments

  1. Hans Knöchel 2018-11-18

    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 = UISemanticContentAttributeForceRightToLeft
       
  2. Prashant Saini 2018-11-19

    Getting 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}

JSON Source