> For the complete documentation index, see [llms.txt](https://docs.inji.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.inji.io/inji-wallet/inji-web/technical-overview/customizations/locale-customization.md).

# Locale Customizations

Inji Web offers multi-lingual support. At present, 3 Indian and 3 international Languages are supported.

1. English
2. Arabic
3. French
4. Tamil
5. Hindi
6. Kannada

## **Steps to support a new language** <a href="#steps" id="steps"></a>

1. Under `locales` folder, localization of a particular language JSON file has to be added.
2. 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 };`

3. Ensure the language display mapping is done in the LanguagesSupported variable in i18n.ts

   ```jsx
   export const LanguagesSupported: LanguageObject[] = [
       {label: "English", value: 'en'},
       {label: "தமிழ்", value: 'ta'},
       {label: "ಕನ್ನಡ", value: 'kn'},
       {label: "हिंदी", value: 'hi'},
       {label: "Français", value: 'fr'},
       {label: "عربي", value: 'ar'}
   ]
   ```
4. 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:

1. [i18next](https://www.i18next.com/): `i18next` is an internationalization framework. It provides the standard i18n features such as [plurals](https://www.i18next.com/translation-function/plurals), [context](https://www.i18next.com/translation-function/context), [interpolation](https://www.i18next.com/translation-function/interpolation), and [format](https://www.i18next.com/translation-function/formatting). It provides a complete solution to localize products in the web.
2. [react-i18next](https://react.i18next.com/): `react-i18next` is a set of components, hooks, and plugins that sit on top of i18next, and is specifically designed for React.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.inji.io/inji-wallet/inji-web/technical-overview/customizations/locale-customization.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
