Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adicionar internacionalização #4

Open
TheCeloReis opened this issue May 6, 2020 · 3 comments
Open

Adicionar internacionalização #4

TheCeloReis opened this issue May 6, 2020 · 3 comments
Assignees
Labels
epic kind/feature Brand new feature

Comments

@TheCeloReis
Copy link
Collaborator

https://react.i18next.com/

@TheCeloReis TheCeloReis added the kind/feature Brand new feature label May 6, 2020
@TheCeloReis TheCeloReis added the status/discussion Need to be discussed label May 12, 2020
@TheCeloReis
Copy link
Collaborator Author

@herbertvpb
Talvez isso seja interessante pra manipular nossos heads e description https://github.com/nfl/react-helmet

Um ponto é que seria necessario efetuar o minimo de SSR, pelo menos exportar nosso index com a tag especificando o idioma da aplicação <html lang="en-us">, não sei se tem como fazer isso mantendo no boilerplate do create-react-app

@TheCeloReis TheCeloReis removed the status/discussion Need to be discussed label May 21, 2020
@TheCeloReis
Copy link
Collaborator Author

TheCeloReis commented May 21, 2020

Algumas features pra essa feature

  • Detectar o idioma do usuario no primeiro acesso e redirecionar ou exibir conteudo no idioma adequado
  • Ter conteudo traduzido para os idiomas suportados
  • Permitir o usuario alterar o idioma
  • Recordar o idioma do usuario em diferentes seções

A definir

  • Definir os produtos que vao ser exibido no(s) outro(s) idioma(s), no endpoint recebemos os nomes em portugues 🇧🇷
  • Penso que podemos usar rotas no app "/en-us/products" ou "/pt-br/products", ou entregar um html statico "inicializado" diferente dependendo da região, o netlify permite configurar isso
  • Gerar rotas com url diferenciado para o idioma, en-us/red-dress vira pt-br/vestido-vermelho. Assim é melhor do lado de SEO, mas adiciona bastante complexidade, e depende da api...

@TheCeloReis
Copy link
Collaborator Author

👀 Isso aqui parece legal também
https://weblate.org/en/

@TheCeloReis TheCeloReis added this to the Internacionalização milestone Jun 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
epic kind/feature Brand new feature
Projects
None yet
Development

No branches or pull requests

3 participants