Internationalization

Localization Support for Edge, Chrome, Firefox, and Safari

Datta able 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
{
  "action bar": "Action Bar",
  "add": "Add",
  "admin-panel": "Admin Panel",
  ...
  ...
}  

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

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

export default config;

Open file App and apply IntlProvider

App.tsx

...
...

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

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

export default App;

Last updated