Celebrating 80th Independence Day of India• Jai Hind •Bharat Mata Ki Jai• Jai Hind •Long Live India• Jai Hind •Jai Hind• Jai Hind •

LLD: Multi Languages Support

Ashutosh Anand Tiwari
By Ashutosh Anand TiwariPublished Feb 22, 2025 · 3 min read
LLD: Multi Languages Support

If we want multi-language support in our app, where users can select a language based on localization, we should load our website in the local language.

This is all possible based on config-driven UI, using:

  1. A JSON file or
  2. Calling an API when a language is selected from the dropdown.

Read: What is config driven UI

A config-driven UI means that the UI is controlled by configuration files instead of hardcoded values.

image.png

So it's all possible because of Config-Driven UI.

The JSON is responsible for the web page content getting changed based on the selected language.

In the same way, you can use a store to manage data where the language is updated based on the selected language.

For example:

const jsonData = {
    en: [
      { id: 1, title: 'Welcome', description: 'Welcome to our multi-language support page' },
      { id: 2, title: 'Features', description: 'Explore the features of our application' },
      { id: 3, title: 'Contact Us', description: 'Get in touch with our support team' },
      { id: 4, title: 'About Us', description: 'Learn more about our company and values' },
      { id: 5, title: 'FAQ', description: 'Frequently Asked Questions' }
    ],
    hi: [
      { id: 1, title: 'स्वागत है', description: 'हमारे बहुभाषी समर्थन पृष्ठ पर आपका स्वागत है' },
      { id: 2, title: 'विशेषताएँ', description: 'हमारे अनुप्रयोग की विशेषताओं का अन्वेषण करें' },
      { id: 3, title: 'संपर्क करें', description: 'हमारी समर्थन टीम से संपर्क करें' },
      { id: 4, title: 'हमारे बारे में', description: 'हमारी कंपनी और मूल्यों के बारे में अधिक जानें' },
      { id: 5, title: 'सामान्य प्रश्न', description: 'अक्सर पूछे जाने वाले प्रश्न' }
      //..... other lang
      ]
      }

Live link : https://heyashu-react.netlify.app/multi-lang-support

Code Link: https://github.dev/ashumsd7/react-playground-2025/blob/main/src/pages/MultiLangSupport.jsx

Continue Exploring

Profile

Ashutosh Anand Tiwari

Follow

Writer & curator of this digital garden — open notes for learners worldwide.

🌱 Planted and watering by :

🙏 धन्यवाद ! 🙏

tiranga
Request a Topic

Want me to write notes on a course?

Tell me the course, book, or research topic you want covered. If it helps learners, I'll consider adding structured digital notes for it in the garden.

Collaborate

Have a notes collection to feature here?

Do you have open notes you want featured in this digital garden? Let me know — we can collaborate and publish them for learners worldwide.