Remove unnecessary custom types with single parameter from translations - #76721
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 |
|
@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] |
|
All contributors have signed the CLA ✍️ ✅ |
c6d735c to
1eb78c9
Compare
| autoPayApprovedReportsTitle: 'Pago automático de informes aprobados', | ||
| autoPayApprovedReportsSubtitle: 'Configura qué informes de gastos pueden pagarse de forma automática.', | ||
| autoPayApprovedReportsLimitError: ({currency} = {}) => `Por favor, introduce un monto menor a ${currency ?? ''}20,000`, | ||
| autoPayApprovedReportsLimitError: (currency?) => `Por favor, introduce un monto menor a ${currency ?? ''}20,000`, |
There was a problem hiding this comment.
Is this valid JS? Can you run prettier on this file? 🤔
|
This is the initial batch of parameter clean-ups for all translations, including the generated files. @roryabraham please have a look! I hope it doesn't break automatic translation system 🙏 |
|
I have read the CLA Document and I hereby sign the CLA |
|
@iwiznia could you please run the Polyglot Parrot to ensure that this does not break the generated translations in any way? |
🦜 Polyglot Parrot! 🦜Squawk! Looks like you added some shiny new English strings. Allow me to parrot them back to you in other tongues: The diff is too large to include in this comment (162KB), so I've created a gist for you: 📋 View the translation diff here 📋 Note You can apply these changes to your branch by copying the patch to your clipboard, then running |
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
Reviewer Checklist
Screenshots/Videos |
QichenZhu
left a comment
There was a problem hiding this comment.
Looks good, but conflicts.
|
PR doesn’t need product input as a refactor PR. Unassigning and unsubscribing myself. |
|
Failing test is unrelated and was fixed in https://github.com/Expensify/App/pull/76974/files |
|
Also ignore unrelated lint-changed for deprecated |
|
@roryabraham looks like this was merged without a test passing. Please add a note explaining why this was done and remove the |
|
Not an emergency - see last two comments. |
|
✋ 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/roryabraham in version: 9.2.74-0 🚀
|
|
🚀 Deployed to production by https://github.com/yuwenmemon in version: 9.2.74-12 🚀
|
1 similar comment
|
🚀 Deployed to production by https://github.com/yuwenmemon in version: 9.2.74-12 🚀
|
|
🚀 Deployed to production by https://github.com/yuwenmemon in version: 9.2.74-12 🚀
|










Explanation of Change
Removing unnecessary custom types from translations - types with single parameter (batch 1)
Fixed Issues
$ #76429
PROPOSAL: #76429 (comment)
Tests
Testing every modified component is unnecessary since the changes are all related to types only, and TypeScript already checks types and enforces correct parameter usage.
CategoryDescriptionHintPageMore featuresand enableRulesCategoriesRequire descriptionDescription hintReportActionsUtilsworkflowsand enableAdd approvalsmembersReportstab and find that reportMorebuttonChange approverand thenAdd approverSave.changed the approver to @_is correctly displayedOffline 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
CategoryDescriptionHintPageIncorrectly passed parameters (as an object, as they were passed prior to the changes in this PR)
ReportActionsUtils- used insrc/pages/home/report/PureReportActionItem.tsxiOS: mWeb Safari
MacOS: Chrome / Safari
CategoryDescriptionHintPageIncorrectly passed parameters (as an object, as they were passed prior to the changes in this PR)
ReportActionsUtils- used insrc/pages/home/report/PureReportActionItem.tsx