Skip to content

fix(i18n): localize Flashcard, map card, receive-type and chat toggle labels - #725

Merged
islandbitcoin merged 2 commits into
mainfrom
fix/localized-control-labels
Sep 23, 2026
Merged

islandbitcoin merged 2 commits into
mainfrom
fix/localized-control-labels

Conversation

@islandbitcoin

Copy link
Copy Markdown
Contributor

Why

Docs sweep product findings: several existing controls rendered hardcoded English instead of going through typesafe-i18n, and the backup-complete copy claimed a password that does not exist.

What

New English keys (source of truth app/i18n/en/index.ts), wording unchanged from what the app already showed:

  • CardScreen: reloadCard, topupViaQr, removeCard, keepYourCard, lostCardWarning, recentActivity, readNfcCard, findFlashpoint
  • MapScreen: directions, chat, payFlashpoint, availableServices, serviceFlashPay, serviceCash, serviceRewards
  • SettingsScreen: enableChat
  • BackupComplete.description now reads "You should now have your recovery phrase written down for future reference."

Components switched to LL.*: components/card/Flashcard.tsx, EmptyCard.tsx, RecentActivity.tsx, components/map-screen/BusinessCardModal.tsx, components/receive-screen/ReceiveTypeBottomSheet.tsx (also fixes the "Onchain " trailing space by using the existing ReceiveScreen.onchain key), WalletReceiveTypeTabs.tsx, settings-screen/nostr-settings/nostr-settings-screen.tsx, settings-screen/chat-setting.tsx.

app/i18n/i18n-types.ts and app/i18n/raw-i18n/source/en.json are regenerated by yarn update-translations, not hand-edited. Other locales pick the new keys up through the normal export; until translated they fall back to English.

Only the lines carrying labels were touched; pre-existing lint findings in these files are left as they were.

Validation

  • yarn check-code green (tsc, translation drift, codegen drift, schema).
  • yarn test: 96 suites, 959 tests green.
  • eslint error counts per touched file are equal to or lower than on main; no new findings on changed lines.

Buzz issue: 5472ac94a5bdb9cc43431a07be309961e70afad8a3e89908bceb0ee8ff78a541

🤖 Generated with Claude Code

… labels

Move hardcoded English control labels through typesafe-i18n: the
Flashcard card buttons and caption, the empty-card actions, the
"Recent activity" heading, the map business card (services heading,
badge names, Directions / Chat / Pay Flashpoint), the receive-type
tabs and picker (which also drops the trailing space in "Onchain "),
and the Enable Chat toggle. Existing product wording is kept.

Also correct BackupComplete.description: the app has no password, only
a recovery phrase. Recovery behaviour is unchanged.

Generated files regenerated with yarn update-translations.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
…asses

The 16 new Flashcard, map and settings keys existed only in en.json. Locale
files carry the English string until translated, which is the existing
convention for new keys.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
@islandbitcoin
islandbitcoin merged commit 9ed3335 into main Sep 23, 2026
10 checks passed
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.

2 participants