Localization

Here's the localization of Supersaas

We do support localization for all the texts in the app. We are using react-i18next for this.

How to add a new language?

  • Create a new language file in the locales folder.
  • Add the translations for the new language.
  • Add the language code to the i18n/index.ts file.
import { initReactI18next } from 'react-i18next';
import i18n from 'i18next';

import en from './en.json';
import fr from './fr.json';

const resources = {
  en,
  fr,
};

i18n.use(initReactI18next).init({
  compatibilityJSON: 'v3',

  ns: ['common'],
  defaultNS: 'common',

  resources,

  lng: 'en',
  fallbackLng: 'en',

  interpolation: {
    escapeValue: false,
  },
});

export default i18n;