Forum Xamarin.iOS

Arabic and English Localization in IOS

Hi All,
we are making an application which should have Arabic and English language support ,when user selects Arabic we need to change the language to Arabic and Layout of the Application to RTL on the Fly . we have tried with setting AppleLanguages key NSUserDefaults and synchronized it ,but its not working ,
please suggest how to change language to Arabic in Run time

Best Answer

  • KPrathapreddyKPrathapreddy USMember
    Accepted Answer

    Finally i have done it by using Mirroring of UI in IOS using CGAffineTransform

Answers

  • i Have used below code in Main.cs its working

        NSUserDefaults.StandardUserDefaults.SetValueForKey(NSArray.FromStrings("ar"), new NSString("AppleLanguages"));
        NSUserDefaults.StandardUserDefaults.Synchronize();
    

    But if i use this in Language Change page its not working

  • KPrathapreddyKPrathapreddy USMember
    Accepted Answer

    Finally i have done it by using Mirroring of UI in IOS using CGAffineTransform

Sign In or Register to comment.