Includes react-intl
(Format.JS), get-user-locale
and tailwindcss
.
Clients will be directly redirected from /
to /[lang]
based on the detected language.
The magic is done in /src/pages/_app.js
.
Polyfill for Format.JS is not implemented in this starter, but it is possible: https://formatjs.io/docs/polyfills/
Clone the repository and then run npm run install
- Set the languages and the default language
/src/i18n/config.js
- Locales are located in
/src/locales/
npm run export