Repository navigation
fix(i18n): localize Flashcard, map card, receive-type and chat toggle labels - #725
Merged
Merged
Conversation
… 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]>
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.
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, findFlashpointMapScreen: directions, chat, payFlashpoint, availableServices, serviceFlashPay, serviceCash, serviceRewardsSettingsScreen: enableChatBackupComplete.descriptionnow 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 existingReceiveScreen.onchainkey),WalletReceiveTypeTabs.tsx,settings-screen/nostr-settings/nostr-settings-screen.tsx,settings-screen/chat-setting.tsx.app/i18n/i18n-types.tsandapp/i18n/raw-i18n/source/en.jsonare regenerated byyarn 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-codegreen (tsc, translation drift, codegen drift, schema).yarn test: 96 suites, 959 tests green.main; no new findings on changed lines.Buzz issue:
5472ac94a5bdb9cc43431a07be309961e70afad8a3e89908bceb0ee8ff78a541🤖 Generated with Claude Code