Multilingual Greetings React Js Github May 2026

Create a new file called i18n.js in the src directory:

Run the following command in your terminal:

Here’s an example en.json file:

const LanguageSwitcher = () => { const { i18n } = useTranslation();