i18n
Reactive icon

I18n

Stable version 1.1.2 (Compatible with OutSystems 11)
Uploaded
 on 30 Jul (10 hours ago)
 by 
0.0
 (0 ratings)
i18n

I18n

Details
Lightweight i18n for Reactive Apps. 1.2KB core, lazy-loading per screen, RTL auto-switch, fallback chain, Flat or nested JSON.
Read more

Usage Example

Expression:




Translate("common.welcome", "Welcome", UserName)

Output (English): Welcome, Ahmed

Output (Arabic): ??????? ????

Interpolation:




Translate("order.status", "Order %{opt1} is %{opt2}", OrderId + "," + Status)


JSON File Structure




/locales/+-- default/¦   +-- en-US.json    ? common translations (loaded at app start)¦   +-- ar-SA.json+-- dashboard/¦   +-- en-US.json    ? screen-specific (lazy-loaded)¦   +-- ar-SA.json+-- profile/    +-- en-US.json    +-- ar-SA.json


Key Features

Lazy Loading

Translations load per screen, not all at once. Only fetches what the user actually visits — faster initial load, lower memory.

Fallback Chain

If a translation is missing for the current locale, the library walks: fr-FR ? fr ? en-US ? en ? defaultValue. UI never breaks.

Strict JSON Validation

Supports pure flat ("a.b.c": "value") or pure nested ({ "a": { "b": { "c": "value" } } }) JSON. Mixed formats are caught at load time with clear error messages — no silent failures.

Cache-Busting

ResourceVersion parameter appends ?t=v1.3 to all fetch URLs. Change the version on deployment to invalidate browser cache.

Release notes (1.1.2)

i18n instance detection issue fixed

License (1.1.2)
Reviews (0)
Team
Other assets in this category