Skip to content

Feat/add portuguese locale - #142

Merged
truthixify merged 3 commits into
wraith-protocol:developfrom
code3ks:feat/add-portuguese-locale
Aug 27, 2026
Merged

Feat/add portuguese locale#142
truthixify merged 3 commits into
wraith-protocol:developfrom
code3ks:feat/add-portuguese-locale

Conversation

@code3ks

@code3ks code3ks commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Summary

This PR adds Portuguese (PT) as a third locale to the website and establishes a documented, repeatable translation contribution workflow.

Changes

Core Implementation

  • ✅ Added src/i18n/pt.json with complete Portuguese translations (241 keys)
  • ✅ Extended scripts/lint-i18n.mjs to enforce parity across all locales
    • Validates all locale files have identical key structures
    • Fails CI on missing or extraneous keys
    • Detects hardcoded strings in components
  • ✅ Updated src/i18n/index.ts to register Portuguese locale
  • ✅ Language switcher automatically picks up PT from locale list

Documentation

  • ✅ Created TRANSLATIONS.md at repo root documenting:
    • How to add a new locale
    • How to keep translations in sync
    • What strings not to translate (brand names, code snippets)
    • Review process and contributor recognition

Contributors

  • ✅ Created src/data/team.json for contributor credits

Testing

Locale Parity Validation

pnpm run lint:i18n

Output:

✅ All locales have matching key structures!
✅ No hardcoded JSX strings found in 14 component(s).
✅ All i18n checks passed!

Build Verification

pnpm run build
  • ✅ TypeScript compilation passes
  • ✅ Vite build successful
  • ✅ All assets generated correctly

Automated Tests

pnpm test
  • ✅ All i18n-related tests pass
  • ✅ Footer, NotFound, and A11y tests pass (11 total)
  • ⚠️ 2 pre-existing Stellar page test failures (unrelated to i18n)

Screenshots

The Portuguese locale is automatically available in the language switcher and can be selected by users with PT browser settings or manually via the header dropdown.

Acceptance Criteria

  • Every page renders in EN, ES, PT with no missing-key fallbacks
  • CI parity gate fails on introduced drift
  • TRANSLATIONS.md covers the contribution loop end-to-end
  • Build passes
  • Lighthouse Perf/SEO remain high (no regressions)

Closes #134

code3ks added 2 commits July 24, 2026 14:31
…epage strip

- Create /case-studies page with filterable per-study cards
- Add individual case study detail pages at /case-studies/:slug
- Implement CaseStudiesStrip component for homepage
- Add structured data (schema.org Article) for SEO
- Include seed case study: Anonymous Payroll Provider
- Add i18n translations (English and Spanish)
- Support filtering by blockchain (Stellar, Horizen, Solana, CKB)

Closes wraith-protocol#70
- Add src/i18n/pt.json with complete Portuguese translations
- Extend scripts/lint-i18n.mjs to enforce locale parity
- Update src/i18n/index.ts to register Portuguese locale
- Add TRANSLATIONS.md documenting contribution process
- Create src/data/team.json with contributor credits
- PT automatically picked up by language switcher

Closes wraith-protocol#134
@vercel

vercel Bot commented Aug 26, 2026

Copy link
Copy Markdown

@code3ks is attempting to deploy a commit to the truthixify's projects Team on Vercel.

A member of the Team first needs to authorize it.

- Merge latest changes from upstream/develop branch
- Resolve conflicts in App.tsx (new pages added)
- Merge team.json structure (add contributor to existing team)
- Add missing i18n keys to pt.json and es.json
- Add new translation keys for newsletter, stealthAnimation
- All locales now have 268 matching keys
@drips-wave

drips-wave Bot commented Aug 26, 2026

Copy link
Copy Markdown

@code3ks Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@truthixify
truthixify merged commit 998d285 into wraith-protocol:develop Aug 27, 2026
3 of 4 checks passed
@truthixify

Copy link
Copy Markdown
Contributor

Merged. Full PT coverage with the parity gate now enforcing it, so a future locale cannot drift silently @code3ks.

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.

Third locale (Portuguese) + translation contribution flow

2 participants