IDEMSInternational / open-app-builder

PLH App Frontend
GNU General Public License v3.0
5 stars 24 forks source link

feat: add support for RTL languages #2317

Closed jfmcquade closed 1 month ago

jfmcquade commented 1 month ago

PR Checklist

Description

Adds minimal support for right-to-left languages. As identified in #2254, there are likely to be further changes required to address issues with the app when in RTL "mode" (the changes go beyond just the appearance of text). These could be added as follow-ups following user testing with someone who understands the expected behaviour of an RTL app.

The metadata for a language (currently just a boolean value for rtl, but could be expanded to include other properties in future) can be set at the level of the deployment config. For example, the debug deployment config has been updated in https://github.com/IDEMSInternational/app-debug-content/pull/69 to support an RTL language with the name "en_rtl" (the language can be set via the template feature_rtl_language.

Screenshot 2024-05-07 at 14 56 19

Git Issues

Addresses #2254, but this issue should remain open for tracking

Screenshots/Videos

feature_rtl_language template:

https://github.com/IDEMSInternational/parenting-app-ui/assets/64838927/f1d1db96-d28c-45cd-ad9f-6cd3eb5fa575