Internationalization in Ignite Apps
Ignite currently set up to have Internationalization setup in English, Arabic, and Korean! This is detected on app load and will set your app to that language.
Right to Left languages (RTL)
Since Ignite already comes with an RTL language, Arabic, adding any new ones would work by default.
Removing RTL Support
To remove RTL support, follow the following steps:
/app/i18n/i18n.ts
- remove your RTL
.json
file from thei18n.translations
object - remove lines 19-21 where we allow and force RTL on the native layer
- remove all other associated logic that uses the exported
isRTL
variable - remove any
tx="some.i18n.key"
from your components and usetext="Some Text"
instead (e.g.<Text text="Some Text" />
Adding more languages
- add your language
.json
file toapp/i18n/
, e.g.app/i18n/fr.json
- update
app/i18n/i18n.ts
i18n.translations
object to include the newly imported language, e.g.i18n.translations = { en, "en-US": en, ja, fr }