Able Pro
NextJS
NextJS
  • ✨Overview
  • 🌴Pre-requisites
  • 🚀Quick Start
  • 📂Folder Structure
  • 🌀State Management
  • 🔒Authentication
  • 📡Axios API Calls
  • 🌐Internationalization
  • 🛠️Project Configuration
  • 🎨Color Presets
  • 🎭Theme/Style Configuration
  • 📚How to
    • Login as First Page
    • Dashboard as First Page
    • Remove menu render from Backend
    • Render Menu from the backend
    • Remove Auth
  • 🖌️Figma
  • 🤝Integration
    • Seed
    • Comparison
  • 📦Dependencies
  • 🗓️Roadmap
  • 🆘Support
  • 📅Changelog
Powered by GitBook
On this page

Internationalization

Localization support Edge, Chrome, Firefox & Safari.

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

src\utils\axios.js
// types
import { DefaultConfigProps } from 'types/config';

...

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

export default config;
src\config.jsx
...
...

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

export default config;
PreviousAxios API CallsNextProject Configuration

Last updated 2 months ago

🌐