Remove unnecessary custom types from translations - Batch 12#84256
Conversation
…t4, normalize params in nextStep.message.*
|
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❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
…ove-unnecessary-types-from-translations-batch2
Explanation of Change
Continue the work of removing unnecessary custom types from translations. Last PR:
#84118.
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.
NextStepUtils.ts1. Open a workspace that has approval workflows enabled (click workspace avatar in LHN > More features > Workflows > Add approvals)
2. Create a new expense request (+ > Submit expense)
3. Add an expense and save
4. Open the expense report — at the top (below the title/header), a next step message should be visible, e.g. "Waiting for
yourexpenses to automatically submit on the last day of the month"Offline 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
NextStepUtils.tsxMacOS: Chrome / Safari
NextStepUtils.tsx