Skip to content

fix(i18n): audit English source copy and fallback coverage - #79

Open
paulinaapeh8 wants to merge 1 commit into
Kalebtron1:mainfrom
paulinaapeh8:fix/issue-69-i18n-source-copy-audit
Open

fix(i18n): audit English source copy and fallback coverage#79
paulinaapeh8 wants to merge 1 commit into
Kalebtron1:mainfrom
paulinaapeh8:fix/issue-69-i18n-source-copy-audit

Conversation

@paulinaapeh8

Copy link
Copy Markdown
Contributor

Closes #69

What changed

EN locale (src/i18n/locales/en.ts)

  • Added 6 missing wallet_setup keys that existed in ES but not EN: install_freighter_alt, install_freighter_link, error_popup_blocked, error_wallet_locked, error_no_network, error_generic. Without these, the fallback chain would have returned Spanish strings in English mode.
  • Improved home.wallet_disconnected_description: was "Freighter is not available. Reconnect your wallet to operate." — now matches the ES version's detail: "Your wallet is not available. Make sure Freighter is installed and unlocked, or use the reconnect button."
  • Improved wallet_setup.freighter_not_detected_description: clarified that Albedo requires no installation (was truncated with "...")

ES locale (src/i18n/locales/es.ts)

  • Fixed not_found.message and not_found.return_home: these were accidentally left in English ("Oops! Page not found", "Return to Home") — corrected to "¡Ups! Página no encontrada" and "Volver al inicio"
  • Fixed 6 missing accent marks in the profile section:
    • mint_button_max_tier: maximomáximo
    • toast_minted_title: exitoéxito
    • toast_error_connection_title: ConexionConexión
    • mint_feedback.insufficient_level_title: AunAún
    • mint_feedback.already_minted_description: reputacionreputación
    • mint_feedback.generic_description: IntentaloInténtalo

i18n config (src/i18n/config.ts)

  • Expanded the header comment to document the 3-step fallback chain: EN → ES (fallbackLng) → key path (parseMissingKeyHandler). Also added guidance on how to add new keys without breaking existing references.

PR_TEST_CHECKLIST.md

  • Added Section 9: i18n/locale coverage — 8 concrete test steps covering EN/ES string rendering, error banners, toast titles, the 404 page, and the disconnected-wallet banner.

Before / after

Key Before After
en: wallet_setup.error_popup_blocked missing (fell back to ES string) "The popup was blocked. Allow pop-ups for this site and try again."
en: home.wallet_disconnected_description "Freighter is not available. Reconnect your wallet to operate." "Your wallet is not available. Make sure Freighter is installed and unlocked, or use the reconnect button."
es: not_found.message "Oops! Page not found" (English) "¡Ups! Página no encontrada"
es: profile.mint_button_max_tier "Nivel maximo alcanzado" "Nivel máximo alcanzado"
es: profile.toast_minted_title "NFT minteado con exito" "NFT minteado con éxito"
es: profile.toast_error_connection_title "Conexion inestable" "Conexión inestable"

Fallback behavior

Missing key path: EN → ES (fallbackLng) → raw key string (parseMissingKeyHandler). This is unchanged — the PR improves coverage so fewer keys reach the fallback. The parseMissingKeyHandler is intentionally left returning the key path so gaps remain visible during review.

Validation

  • npm run build exits 0 with no TypeScript or compilation errors.
  • No keys were renamed or deleted — only values were corrected and missing keys were added.

…1#69)

- EN locale: add 6 missing wallet_setup keys that were present in ES
  (install_freighter_alt, install_freighter_link, error_popup_blocked,
  error_wallet_locked, error_no_network, error_generic)
- EN locale: improve home.wallet_disconnected_description to match the
  informativeness of the ES version (mentions Freighter + reconnect button)
- EN locale: improve wallet_setup.freighter_not_detected_description
  to clarify Albedo requires no installation
- ES locale: fix not_found.message and not_found.return_home — were
  accidentally left in English
- ES locale: fix missing accent marks in profile section:
  mint_button_max_tier ('maximo' → 'máximo'),
  toast_minted_title ('exito' → 'éxito'),
  toast_error_connection_title ('Conexion' → 'Conexión'),
  mint_feedback.insufficient_level_title ('Aun' → 'Aún'),
  mint_feedback.already_minted_description ('reputacion' → 'reputación'),
  mint_feedback.generic_description ('Intentalo' → 'Inténtalo')
- i18n/config.ts: expand comment to document the 3-step fallback chain
  (en → es → key path) so the behavior is clear to future contributors
- PR_TEST_CHECKLIST.md: add section 9 with i18n/locale test cases
  covering both EN and ES string rendering and fallback verification

Closes Kalebtron1#69
@vercel

vercel Bot commented Jul 27, 2026

Copy link
Copy Markdown

@paulinaapeh8 is attempting to deploy a commit to the alankcr1-6443's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave

drips-wave Bot commented Jul 27, 2026

Copy link
Copy Markdown

@paulinaapeh8 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

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.

Audit English source copy and fallback coverage

1 participant