Remove unnecessary custom types from translations - batch 6#78268
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 |
…d parameters instead of an object
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
@QichenZhu Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
No product review required. Removing myself and unsubscribing |
Reviewer Checklist
Screenshots/VideosAndroid: HybridApp
Android: mWeb Chrome
iOS: HybridApp
|
QichenZhu
left a comment
There was a problem hiding this comment.
Approving, but conflicts again
|
@iwiznia looks like this was merged without a test passing. Please add a note explaining why this was done and remove the |
|
Lint failures existed before and are unrelated to the changes here |
|
🚀 Deployed to staging by https://github.com/iwiznia in version: 9.2.96-1 🚀
|
| const title = spreadsheet.importFinalModal.titleKey ? translate(spreadsheet.importFinalModal.titleKey) : ''; | ||
| const prompt = spreadsheet.importFinalModal.promptKey | ||
| ? translate(spreadsheet.importFinalModal.promptKey, spreadsheet.importFinalModal.promptKeyParams as TranslationParameters<typeof spreadsheet.importFinalModal.promptKey>[0]) | ||
| ? translate(spreadsheet.importFinalModal.promptKey, ...(spreadsheet.importFinalModal.promptKeyParams as TranslationParameters<typeof spreadsheet.importFinalModal.promptKey>)) |
Revert "Merge pull request #78268 from software-mansion-labs/mrejdak/…
…s/mrejdak/remove-unnecessary-types-batch-6"
|
🚀 Deployed to production by https://github.com/arosiclair in version: 9.2.96-6 🚀
|
|
🚀 Deployed to production by https://github.com/arosiclair in version: 9.2.96-6 🚀
|
|
🚀 Deployed to production by https://github.com/arosiclair in version: 9.2.96-6 🚀
|
|
🚀 Deployed to staging by https://github.com/iwiznia in version: 9.2.97-0 🚀
|
|
🚀 Deployed to staging by https://github.com/iwiznia in version: 9.2.99-0 🚀
|
|
🚀 Deployed to production by https://github.com/francoisl in version: 9.2.99-8 🚀
|
|
🚀 Deployed to staging by https://github.com/iwiznia in version: 9.3.5-0 🚀
|
|
🚀 Deployed to production by https://github.com/Beamanator in version: 9.3.5-7 🚀
|









































Explanation of Change
Removing unnecessary custom types from translations (batch 6). Translations returning PluralForms are not flattened.
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.
AddressForm.tsxAccounttab and selectProfileAddressImportSpreadsheetConfirmModal.tsxMember.tsImportedMembersPage.tsxWorkspacestab and create a new one.Members, clickMoreandDownload CSV.More,Import spreadsheetand select the same file that was just downloaded.Importand verify that the modal displays the correct message.Importand verify that the error message about required mapping missing is correct.Import.Import.Category.tsWorkspacestab and create a new one.Categories, clickMoreandDownload CSV.Offline tests
N/A
QA Steps
Same as Tests
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: mWeb Chrome
iOS: Native
AddressForm.tsxImportSpreadsheetConfirmModal.tsxMember.tsImportedMembersPage.tsxCategory.tsiOS: mWeb Safari
MacOS: Chrome / Safari
AddressForm.tsxImportSpreadsheetConfirmModal.tsxMember.tsImportedMembersPage.tsxCategory.ts