Skip to content

fix: add locales for tradition names - #363

Merged
Otaiki1 merged 1 commit into
crackedstudio:mainfrom
khanavi272-spec:fix/297-add-tradition-locales
Sep 4, 2026
Merged

fix: add locales for tradition names#363
Otaiki1 merged 1 commit into
crackedstudio:mainfrom
khanavi272-spec:fix/297-add-tradition-locales

Conversation

@khanavi272-spec

Copy link
Copy Markdown
Contributor

What changed

Implemented the localization support requested in Issue #297 by adding dedicated locale dictionaries for the traditions referenced by the Sharibo README.

Added locales

  • 🇫🇷 fr.ts — French / tontine
  • 🇵🇹 pt.ts — Portuguese / consórcio
  • 🇳🇬 yo.ts — Yoruba / ajo and esusu
  • 🇵🇭 tl.ts — Filipino / paluwagan
  • 🇨🇳 zh.ts — Chinese / hui
  • 🇮🇳 hi.ts — Hindi / chit fund

Each new locale mirrors the existing English locale key structure so the application can safely resolve the same translation keys across supported languages.

The tradition-specific terminology is preserved in each locale instead of replacing the names with unrelated generic translations. This keeps the terminology aligned with the communities and traditions referenced by the project README.

Why

The application previously shipped with only English and Spanish locales even though the README recognizes traditions from a wider range of linguistic and cultural communities.

This change closes that localization gap and allows the UI to represent those traditions using their own commonly used names.

The existing i18n implementation already performs exact and base-language matching, so regional browser languages such as pt-BR can resolve to the new pt locale without requiring unnecessary changes to the localization loader.

Issue

Closes #297

Testing

  • Verified all new locale files follow the existing locale structure
  • Verified locale files use the same translation key set as en.ts
  • Verified the new locale filenames match the language codes expected by the i18n loader
  • Verified pt-BR can fall back to pt through the existing browser-language matching logic
  • Circuit tests
  • Contract tests
  • E2E against testnet
  • Full manual application test

Scope

This PR intentionally keeps the implementation minimal.

No changes were made to the existing localization architecture because the current i18n.ts implementation already discovers ./locales/*.ts dynamically and already supports regional language fallback.

The primary change is the addition of the requested locale dictionaries.

@Otaiki1
Otaiki1 merged commit 1763a7c into crackedstudio:main Sep 4, 2026
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.

Add locales for the traditions the README names

2 participants