fix: make Expensify card confirmation text dynamic based on card type#80030
fix: make Expensify card confirmation text dynamic based on card type#80030rafecolton merged 2 commits intoExpensify:mainfrom
Conversation
|
Hey, I noticed you changed If you want to automatically generate translations for other locales, an Expensify employee will have to:
Alternatively, if you are an external contributor, you can run the translation script locally with your own OpenAI API key. To learn more, try running: npx ts-node ./scripts/generateTranslations.ts --helpTypically, you'd want to translate only what you changed by running |
There was a problem hiding this comment.
Pull request overview
This pull request makes the Expensify card confirmation text dynamic based on the card type (physical vs virtual). The text now correctly shows "ready to ship" for physical cards and "ready to use" for virtual cards.
Changes:
- Added logic to detect card type and select the appropriate translation key
- Renamed and split the translation key from
willBeReadytowillBeReadyToUseandwillBeReadyToShip - Updated all language files (10 languages total) with the new translations
Reviewed changes
Copilot reviewed 11 out of 11 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| src/pages/workspace/expensifyCard/issueNew/ConfirmationStep.tsx | Added card type detection logic and conditional translation key selection |
| src/languages/en.ts | Added new translation keys for "ready to use" and "ready to ship" messages |
| src/languages/es.ts | Spanish translations for the new keys |
| src/languages/de.ts | German translations for the new keys |
| src/languages/fr.ts | French translations for the new keys |
| src/languages/it.ts | Italian translations for the new keys |
| src/languages/ja.ts | Japanese translations for the new keys |
| src/languages/nl.ts | Dutch translations for the new keys |
| src/languages/pl.ts | Polish translations for the new keys |
| src/languages/pt-BR.ts | Brazilian Portuguese translations for the new keys |
| src/languages/zh-hans.ts | Simplified Chinese translations for the new keys |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
Reviewer Checklist
Screenshots/Videos |
|
@rafecolton Friendly bump. |
|
@rafecolton looks like this was merged without a test passing. Please add a note explaining why this was done and remove the |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
Idk wtf Melvin, tests were / are clearly passing |
|
🚀 Deployed to staging by https://github.com/rafecolton in version: 9.3.7-0 🚀
|
|
🚀 Deployed to production by https://github.com/Beamanator in version: 9.3.7-3 🚀
|










Explanation of Change
Fixed Issues
$ #79393
PROPOSAL: #79393 (comment)
Tests
Precondition:
Steps
Offline tests
Same as tests
QA Steps
Same as tests
// TODO: These must be filled out, or the issue title must include "[No QA]."
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android.Native.mp4
Android: mWeb Chrome
Android.mWeb.Chrome.mp4
iOS: Native
IOS.Native.mp4
iOS: mWeb Safari
IOS.mWeb.Safari.mp4
MacOS: Chrome / Safari
macOS.Chrome.mp4