moko-resources
moko-resources copied to clipboard
Support Layout Direction along side resources
Feature Request: Support Layout Direction alongside Resources
Description:
Currently, the moko-resources library provides excellent support for managing resources in multi-language applications. However, it lacks a crucial feature for handling layout direction alongside these resources, particularly in cases where languages require right-to-left (RTL) layout direction.
In languages that are read from right to left, such as Arabic, Hebrew, and Persian, it's essential not only to localize strings but also to ensure that the overall layout direction of the application adjusts accordingly. This involves mirroring layouts, aligning text appropriately, and generally adapting the UI to suit RTL languages.
Requested Feature:
I propose the addition of a new feature within moko-resources that seamlessly integrates support for layout direction alongside the existing resource management capabilities. This feature would enable developers to specify layout direction preferences per language/locale, ensuring that the UI adapts dynamically based on the user's language settings.
Expected Behavior:
- Ability to specify layout direction (LTR or RTL) for each supported language/locale.
- Automatic adjustment of UI elements based on the specified layout direction.
- Seamless integration with existing resource management workflows within moko-resources.
Use Case:
Consider an application that supports both English (LTR) and Arabic (RTL) languages. With this proposed feature, developers can easily configure resources and layout direction preferences for each language, resulting in a more polished and user-friendly experience for RTL language users.
Additional Notes:
This feature would greatly enhance the usability and accessibility of applications developed using moko-resources in multi-language environments. I believe this enhancement aligns with the library's goal of simplifying resource management and localization for Kotlin Multiplatform projects.
I appreciate your consideration of this feature request and look forward to any feedback or updates regarding its potential inclusion in future releases of moko-resources.
Thank you for your attention to this matter.
Please feel free to reach out if further clarification or details are needed.