Change Language
Overview
Easily switch your Mobile app between English and Arabic at runtime.
Instantly adjusting layout direction (RTL/LTR) on mobile and forcing English‑formatted dates even for Arabic locales. Built for simplicity and seamless integration.
Documentation
📘 ChangeLanguage Module
⚙️ Typical Usage Scenario
Let users flip your Mendix app between English and Arabic in real time:
- Wire ACT_Language_UpdateDeviceLang to a dropdown or button to switch languages instantly.
- On native/mobile, call SUB_Language_SetDirection at startup (first page or Before‑Startup) to auto‑apply the correct LTR or RTL layout.
- Use JAVA_FormatDateEnglish to keep day/month names in English—even when Arabic is active.
🌟 Features and Limitations
Features– One‑click runtime switch: English ↔ Arabic– Automatic RTL/LTR layout on native/mobile– English date labels while Arabic is selected
Limitations– Ships with English and Arabic only; add languages by extending ENUM_Languages and related flows.
🔌 Dependencies– Mendix Studio Pro 10.6.7 or newer– No extra modules required
🛠️ Installation
-
Download ChangeLanguage.mpk from the Marketplace.
-
In Studio Pro: App → Import Module Package, choose the file, and import.
-
In App Security → Module Roles, grant roles (e.g., User, Admin) access to public nanoflows.
-
Place a language selector (dropdown/button) and connect it to ACT_Language_UpdateDeviceLang.
-
Open the _Example folder included in the module to see working examples.
⚙️ ConfigurationOn app start (home‑page on‑enter or Before‑Startup flow), invoke SUB_Language_SetDirection to ensure the layout direction matches the chosen language before any UI renders.