You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have integrated the AppLocale library and able to change to other languages like French, but I am not able to switch to Arabic.
The Kotlin code used to set Arabic is: AppLocale.desiredLocale = Locale("ar")
After setting the locale, Im also using reword to trigger the change.
I have placed the Arabic strings in their respective values-ar strings.xml file
Please let me know if I am doing any mistake or does AppLocale support Arabic language?
Im also having one more issue:
When I change the language for example from English to French, the Appbar/toolbar title is not being changed as per the Locale. Im using Jetpack Navigation in my app. Titles for these destinations are set in the navigation.xml file using string resources.
The reword_version = "4.0.1"
Your feedback will be of great help. Thanks in advance.
The text was updated successfully, but these errors were encountered:
Actually any language should be supported, although I did not implement anything to deal with RTL out of the box, so you would need to update your layout manually here if needed. I might implement something here though, should be relatively easy. If you have a suggestion feel free to create a PR ;)
Please try to recreate your issue using the example app of this repository, just fork it and post a link to your fork in this issue.
I am using the Jetpack Navigation in my project as well, but I do not set the toolbar title with it, so I don't really know what happens here. I think it is easier to just put the Toolbar in your XMLs and set the title from there. If you find another solution feel free to post it here, and I might add it to this library. But I would in general recommend to use the Toolbar APIs from the appcompat library directly in your XML files if you can, as it simplifies a lot of issues in my experience.
HI,
I have integrated the AppLocale library and able to change to other languages like French, but I am not able to switch to Arabic.
The Kotlin code used to set Arabic is:
AppLocale.desiredLocale = Locale("ar")
After setting the locale, Im also using reword to trigger the change.
I have placed the Arabic strings in their respective values-ar strings.xml file
Please let me know if I am doing any mistake or does AppLocale support Arabic language?
Im also having one more issue:
When I change the language for example from English to French, the Appbar/toolbar title is not being changed as per the Locale. Im using Jetpack Navigation in my app. Titles for these destinations are set in the navigation.xml file using string resources.
The reword_version = "4.0.1"
Your feedback will be of great help. Thanks in advance.
The text was updated successfully, but these errors were encountered: