Locale Customizations
Inji Web offers multi-lingual support. At present, 3 Indian and 3 international Languages are supported.
English
Arabic
French
Tamil
Hindi
Kannada
Steps to support a new language
Under
locales
folder, localization of a particular language JSON file has to be added.Language JSON has to be imported in
i18n.ts
and load the resources to i18next as follows:
import ta from './locales/ta.json';
const resources = { en, fr, ar, hi, kn, ta };
Ensure the language display mapping is done in the LanguagesSupported variable in i18n.ts
To use with react, must include the key with the 't' function
<Text>{t('editLabel')}</Text>
About libraries
Below specified libraries are used in the Inji Web react project to support localization:
Last updated
Was this helpful?