Crema React
v-2
v-2
  • About Crema(CRA)
  • Product Overview
  • Folder Structure
  • Installation
    • Pre-Requisites
    • Installing Crema
  • Default Route
  • Customization
    • Template Style
    • Template Mode
    • Template and Sidebar Color
    • Tempate Direction
    • Navigation Style
    • Footer
    • Footer Type
    • Route Transition
  • Multi-Lingual Support
    • Changing Language
    • Adding New Language
  • Sidebar Menu
    • Adding New Menu
  • Route Protection
  • Loggedin User
  • Axios Setup
  • Package.json
  • GitHub Access
  • Slack Community
  • FAQ
  • Next.js
    • About Next.JS
    • Installation
    • Folder Structure
    • Route Protection
    • Deploy to server
  • Servers
    • Python
    • Mongoose
    • Laravel
Powered by GitBook
On this page

Was this helpful?

  1. Multi-Lingual Support

Changing Language

Last updated 5 years ago

Was this helpful?

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:-

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

In this file, you will find a property named 'locale' which is an object, you have to replace this object with any accepted value in order to set your language as the default language. You can get the list of accepted values by opening file having path:-

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

A screenshot of the data file is attached for the reference