Internationalization

Localization Support for Edge, Chrome, Firefox, and Safari

Mantis supports four types of international languages ('en' - English, 'fr' - French, 'ro' - Romanian, 'zh' - Chinese). You can switch language from the header bar. We internationalize 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 exist at src\utils\locales

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

To change Locale, open the file src\config.js file and set language

config.js
const config = {
    ...
    i18n: 'en', // 'en' - English, 'fr' - French, 'ro' - Romanian, 'zh' - Chinese
    ...
}

Open file App.js and apply IntlProvider

App.js

...
...

// ===========================|| APP - THEME, ROUTER, LOCAL ||=========================== //

const App = () => (
...
      <Locales>
      ...      
      </Locales>
...
);

export default App;