<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/multilingual-sites-in-react-2jekugdrf" -->

---
title: Multilingual sites in React | daily.dev
description: Learn how to implement the multilingual feature in a website using React. Create an i18n file, a LanguageSelector component, and a locales folder to store...
canonical: https://daily.dev/posts/multilingual-sites-in-react-2jekugdrf
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Multilingual sites in React | daily.dev
og:description: Learn how to implement the multilingual feature in a website using React. Create an i18n file, a LanguageSelector component, and a locales folder to store...
og:url: https://daily.dev/posts/multilingual-sites-in-react-2jekugdrf
og:image: https://api.daily.dev/og/posts/2JEKUGdRF.png
og:image:alt: Multilingual sites in React
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Multilingual sites in React

**[asayer](https://daily.dev/sources/asayer)** · 6 min read · 10 upvotes · 1 comments

## Summary

Learn how to implement the multilingual feature in a website using React. Create an i18n file, a LanguageSelector component, and a locales folder to store translations in different languages. Map contents with languages and use the react-i18next package for translation.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://blog.openreplay.com/multilingual-sites-in-react/>

## Community discussion

Top comments from developers on daily.dev.

**@idrees** · 0 upvotes

> informative

---

Tags: [#webdev](https://daily.dev/tags/webdev), [#react](https://daily.dev/tags/react)

[View this post on daily.dev](https://daily.dev/posts/multilingual-sites-in-react-2jekugdrf)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Multilingual sites in React","url":"https://daily.dev/posts/multilingual-sites-in-react-2jekugdrf","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/multilingual-sites-in-react-2jekugdrf"},"datePublished":"2023-03-10T00:47:22.544Z","dateModified":"2024-04-15T13:25:34.862Z","description":"Learn how to implement the multilingual feature in a website using React. Create an i18n file, a LanguageSelector component, and a locales folder to store...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/b74778f82db009e0ff582f34e4f29dfc?_a=AQAEufR","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/b74778f82db009e0ff582f34e4f29dfc?_a=AQAEufR","isAccessibleForFree":true,"articleSection":"asayer","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"asayer","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/be8d9d38650943c8a1718ba79f23e9ac","url":"https://daily.dev/sources/asayer"},"commentCount":1,"discussionUrl":"https://daily.dev/posts/multilingual-sites-in-react-2jekugdrf","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":10},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":1}],"keywords":"webdev,react","timeRequired":"PT6M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"asayer","item":"https://daily.dev/sources/asayer"},{"@type":"ListItem","position":3,"name":"Multilingual sites in React"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/multilingual-sites-in-react-2jekugdrf","comment":[{"@type":"Comment","text":"informative","datePublished":"2023-03-17T09:20:11.576Z","url":"https://daily.dev/posts/2JEKUGdRF#c-eedhmlk8n","author":{"@type":"Person","name":"Muhammad Idrees","url":"https://daily.dev/idrees","image":"https://platform-lookaside.fbsbx.com/platform/profilepic/?asid=8203101286398327\u0026height=50\u0026width=50\u0026ext=1672160290\u0026hash=AeSua7sFKsLNT6oS0NI"}}]}
```

