Remove unnecessary custom types from translations - Batch 13#84271
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 |
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
|
d11d4bc to
8c2a7f2
Compare
please ignore, previous problem with a merge commit. |
Explanation of Change
Continue the work of removing unnecessary custom types from translations. Last PR:
#84256.
Fixed Issues
$ #76429
PROPOSAL: #76429 (comment)
Tests
Testing every modified component is not necessary since the changes are all related to types only, and TypeScript already checks types and enforces correct parameter usage.
Below is an example where the changes can be observed in the UI.
UpgradeIntro.tsx
Open a
Workspaceon theCollectplanOpen
More FeaturesFind
Per diem(or another feature that shows an upgrade prompt)In that
Upgrade Panelcheck:learn moreis a clickable linkClick
learn moreand confirm you are taken to theSubscription PageOffline tests
N/A
QA Steps
Same as tests.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand 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
iOS: Native
UpgradeIntro.tsxAfter clicking
learn moreMacOS: Chrome / Safari
UpgradeIntro.tsxAfter clicking learn more