Changing Language

You will find a Language selector in the header, click on that and select the language of your choice.

Changing Language in run time:-

You will find a Language selector in the header, click on that and select the language of your choice.

Changing Language in development mode (setting default Language):-

To set the default language, go to the following file and update the locale object

src/@crema/utility/AppContextProvider/defaultConfig.js


  locale: {
    languageId: 'english',
    locale: 'en',
    name: 'English',
    icon: 'us',
  },

You have to replace this object with any accepted value in order to set your language as the default locale. You can get the list of accepted values by opening following file having path:-

src/@crema/core/AppLngSwitcher/data.js

const languageData = [
  {
    languageId: 'english',
    locale: 'en',
    name: 'English',
  },
  {
    languageId: 'chinese',
    locale: 'zh',
    name: '中国人',
  },
  {
    languageId: 'spanish',
    locale: 'es',
    name: 'Español',
  },
  {
    languageId: 'french',
    locale: 'fr',
    name: 'français',
  },
  {
    languageId: 'italian',
    locale: 'it',
    name: 'Italiano',
  },
  {
    languageId: 'arabia',
    locale: 'ar',
    name: 'عربي',
  },
];
export default languageData;

Last updated