feat(i18n): add Portuguese (pt) translation#91
Open
mzspicoli wants to merge 3 commits into
Open
Conversation
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>
d02ddf5 to
7f2dab4
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
src/internationalization/locales/pt/translation.tswith full translation (weather conditions, editor labels, demo page)'pt'to theSupportedLanguagetype andlanguage_pttoEditorTranslationsinterfaceptin the locale index (src/internationalization/index.ts)language_ptentry to all 9 existing locale filessrc/components/editor.ts)README.mdto list Portuguese as supportedTranslation notes
Testing
Built successfully with
bun run build— no TypeScript errors. All keys present and matching theTranslationinterface.I'm a native Brazilian Portuguese speaker based in Luxembourg — happy to take feedback on any translation choices.