# Internationalization

Able Pro supports four types of international languages ('**en**' - English, '**fr**' - French, '**ro**' - Romanian, '**zh**' - Chinese). You can switch language from the header bar. We internationalise the main menu for all four languages. When you change it from the header, you will see the effect there. If you want to configure one more language or set a default language, then continue reading below\...

## How does it work?

Data for locale files exists at **`src\utils\locales`**

{% code title=".json file" %}

```json
{
  "accordion": "Accordion",
  "account-profile": "Account Profile",
  "add-new-product": "Add New Product",
  ...
  ...
}
```

{% endcode %}

To change the Locale, open the file **`src\config`** file and set language

{% tabs %}
{% tab title="NEXT (TS)" %}
{% code title="src\config.ts" %}

```typescript
// types
import { DefaultConfigProps } from 'types/config';
...

// ==============================|| THEME CONFIG ||============================== //
const config: DefaultConfigProps = {
  ...
  i18n: 'en',
  ...
};

export default config;
```

{% endcode %}
{% endtab %}

{% tab title="NEXT (JS)" %}
{% code title="src\config.js" %}

```javascript
...
...

// ==============================|| THEME CONFIG ||============================== //
const config = {
  ...
  i18n: 'en',
 ...
};

export default config;
```

{% endcode %}
{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://phoenixcoded.gitbook.io/able-pro/nextjs/internationalization.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
