feat: add i18n with English (default) and PT-BR (/pt-br)
All checks were successful
Deploy / Build & Push (Prod) (push) Successful in 8s
Deploy / Deploy Staging (push) Successful in 4s
Deploy / Deploy Prod (push) Successful in 5s

- Translate index.html to English as default language
- Copy PT-BR version to index.pt-br.html
- Add hreflang tags for SEO in both versions
- Add language selector in navbar (EN ↔ PT-BR)
- Add nginx.conf with Content-Language headers and /pt-br routing
- Update Dockerfile to process and serve both HTML files
This commit is contained in:
2026-04-17 16:11:55 -03:00
parent 361a6721c0
commit ed885aebef
4 changed files with 2020 additions and 189 deletions

24
nginx.conf Normal file
View File

@@ -0,0 +1,24 @@
server {
listen 80;
server_name _;
root /usr/share/nginx/html;
location / {
try_files $uri $uri/ =404;
default_type text/html;
add_header Content-Language "en" always;
}
location /pt-br {
try_files $uri $uri/ /pt-br/index.html =404;
default_type text/html;
add_header Content-Language "pt-BR" always;
}
location = /pt-br {
return 301 /pt-br/;
}
gzip on;
gzip_types text/html text/css application/javascript;
}