Remove unnecessary custom types from translations - batch 6#79190
Conversation
…s/mrejdak/remove-unnecessary-types-batch-6"
|
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!
|
bdc5d89 to
dbc668f
Compare
dbc668f to
0a4a6c5
Compare
|
@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] |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0a4a6c51a1
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
|
The workaround for handling the case of an old data persisting in Onyx after an update added unnecessary complexity, thus the promptKeyParams are kept as objects. |
|
Product review not required. Removing myself and unsubscribing |
|
hi, friendly bump @QichenZhu 😄 |
|
I'll review in 24 hours. |
Reviewer Checklist
Screenshots/VideosAndroid: HybridApp
|
|
Lint errors existed before these changes |
|
@iwiznia 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. |
|
🚀 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. Modified translation of
spreadsheet.importFinalModalto allow for flattened arguments or lack ofpromptKeyParams.Fixed Issues
$ #76429
$ #79136
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.ImportSpreadsheetConfirmModal.tsxTag.tsWorkspacestab and create a new one.Tagsand add a new oneMembers, clickMoreandDownload CSV.More,Import spreadsheet,Multi-level tagsand select the same file that was just downloaded.NextandImport.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.tsImportSpreadsheetConfirmModal.tsxTag.tsiOS: mWeb Safari
MacOS: Chrome / Safari
AddressForm.tsxImportSpreadsheetConfirmModal.tsxMember.tsImportedMembersPage.tsxCategory.tsImportSpreadsheetConfirmModal.tsxTag.ts