Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

139
Visualizações
What is the best practice to store multi language text in a react web site

I am building a react website, and It has multiple localizations. What is the best practice to store ui texts for different languages? I am currently considering the two

  • Store text in ui code, as an object variable or array, for multiple languages
    This way, I am fearing it could scatter the text in many files and could make the the site load slow since all the text is included with the code
  • Storing in a static JSON file in a server directory
    This way I am fearing with many components requesting their texts, it would appear bad with text loading slowly on every page. I might make it fetch all once for all component, but that would seriously hinder the modularity.

What is the best practice to implement text storage for multiple localization react app?

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

First, you need to use npm packages i18next react-i18next

Here is good tutorial how to do it

https://www.mindbowser.com/adding-multi-language-support-using-reactjs/

You should save as local Json, no need for static translation to be served from server.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda