Skip to content

feat(i18n): add Portuguese (pt) translation#91

Open
mzspicoli wants to merge 3 commits into
teuchezh:devfrom
mzspicoli:add-portuguese-translation
Open

feat(i18n): add Portuguese (pt) translation#91
mzspicoli wants to merge 3 commits into
teuchezh:devfrom
mzspicoli:add-portuguese-translation

Conversation

@mzspicoli
Copy link
Copy Markdown

Summary

Adds Portuguese (pt) translation to the card, bringing the total to 10 supported languages.

The translation uses neutral Portuguese vocabulary that reads naturally for both Brazilian and European Portuguese speakers.

Changes

  • Added src/internationalization/locales/pt/translation.ts with full translation (weather conditions, editor labels, demo page)
  • Added 'pt' to the SupportedLanguage type and language_pt to EditorTranslations interface
  • Registered pt in the locale index (src/internationalization/index.ts)
  • Added language_pt entry to all 9 existing locale files
  • Added Portuguese option to the editor language dropdown (src/components/editor.ts)
  • Updated README.md to list Portuguese as supported

Translation notes

  • "Feels like" → "Sensação"
  • "Pouring" → "Chuva forte"
  • "Sleet" → "Chuva com neve"
  • Picked "humidade" (universal in technical/weather context, works for PT-BR and PT-PT)

Testing

Built successfully with bun run build — no TypeScript errors. All keys present and matching the Translation interface.

I'm a native Brazilian Portuguese speaker based in Luxembourg — happy to take feedback on any translation choices.

Matheus and others added 3 commits May 12, 2026 17:19
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Add 'pt' to SupportedLanguage type
- Import and register pt translation in index
- Add language_pt field to EditorTranslations interface
- Add language_pt entry to all existing locales
- Add Portuguese option to editor language dropdown
- Add pt auto-detection to resolveLanguage

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@mzspicoli mzspicoli force-pushed the add-portuguese-translation branch from d02ddf5 to 7f2dab4 Compare May 12, 2026 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant