-
-
Notifications
You must be signed in to change notification settings - Fork 41
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
I18n poc #165
base: main
Are you sure you want to change the base?
I18n poc #165
Conversation
… do site Add the dependency of @angular/localize in order to allow translating the website
… do site Add the dependency of @angular/localize in order to allow translating the website
✅ Deploy Preview for querido-diario-plataforma ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Create a command to extract the string to be translated
Automatic update of Polyfills file
Set Portuguese as main language and English (US) as an alternative
Enable the localization in the build and set its validation level to error
Create a build configuration for English (US) language
Create a serve configuration for English (US) language
Versionate the translation file for the main language (Portuguese)
Versionate the translation file for the English (US)
Map a test string to translate
Create Netlify config file
Add redirect rule for en-US
Update redirect rule for pt
Remove initial slash from URL
Remove initial slash from URL
Fix assets path
Fix assets path
Fix assets path
Redirect the accesses to PT as default
Alterações
|
Remove temporarily the URLs created for en-US
Update the order of Netlify redirect rules
Update redirect rule for en-US
Replace the absolute path with the relative one
Disable the en-US redirect
Set en-US language as default
…o browser Set a redirect rule for 'pt' when there is a language from the browser
Place the route module import at the end
Expose the 404 page
Redirect non-existing URLs to the 404 page
Replace href with router
Add a dot at the beginning of the path
Replace router with href
Add another dot at the beginning of the path
Create a string for testing
Use the testing string as URL
Create links with several possible solutions
Remove code for testing
Remove 404 page setup
Remove 404 page
Create component for 404 page
Map the component for 404 page
Set a wildcard route to the 404 page
Set the top menu items to be translated
Update the translation files
Set the language switch lanel to be translated
Update the translation files
Add meaning to mapped strings to be translated
Update the translation files
Vou trabalhar nesse essa semana |
Update: estou trabalhando para mudar um pouco a abordagem aqui porque vi que tem muitos jsons que mapeiam quase todo conteúdo do site. Acho que os blogposts vão precisar de uma solução à parte já que é tudo em HTML. |
Deixar habilitada a possibilidade de escrever blogposts em mais de uma língua poderia ser pensado em outra issue mesmo, deixando essa etapa mais simples |
Português (BR) | English (US)
Comunidade
Tipo de alteração
Issues relacionadas
Resolve #163
Validação
Evidências
Anexe evidências do antes e do depois da alteração (quando necessário).
Alterações
@angular/localize
i18n:extract
para gerar/atualizar os arquivos de tradução baseado nas strings mapeadaspt
) e outro paraen-US
en
, redireciona paraen-US
en
, redireciona paraen-US
pt
(não tem a opção dept-BR
)Documentação