Remove unnecessary custom types from translations - Batch 11#84118
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 |
|
All contributors have signed the CLA ✍️ ✅ |
|
I have read the CLA Document and I hereby sign the CLA |
f881164 to
eaf6024
Compare
|
Nice work 🚀 |
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.
|
27563c8 to
eaf6024
Compare
…rom-translations-batch1
2047994 to
e244325
Compare
|
|
c8bb068 to
bf598f6
Compare
…ove-unnecessary-types-from-translations-batch1 # Conflicts: # src/languages/de.ts # src/languages/en.ts # src/languages/es.ts # src/languages/fr.ts # src/languages/it.ts # src/languages/ja.ts # src/languages/nl.ts # src/languages/pl.ts # src/languages/pt-BR.ts # src/languages/zh-hans.ts
bf598f6 to
1b00c86
Compare
I had some difficulties while making the 'merge commit' verified, so please ignore. |
|
@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] |
|
PR doesn’t need product input as a refactor PR. Unassigning and unsubscribing myself. |
|
hey @QichenZhu, whenever you get a chance, could you take a look at this PR? thanks! |
…rom-translations-batch1
|
This PR is quite large. I'll get back to you by Monday. |
Reviewer Checklist
Screenshots/Videos |
QichenZhu
left a comment
There was a problem hiding this comment.
Some minor style or typo issues.
|
🚧 @iwiznia has triggered a test Expensify/App build. You can view the workflow run here. |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/iwiznia in version: 9.3.39-0 🚀
|
|
🚀 Deployed to production by https://github.com/cristipaval in version: 9.3.39-3 🚀
|










Explanation of Change
Continue the work of @mrejdak removing unnecessary custom types from translations. His last PR:
#80342. (Batch 10, currently Batch 11).
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 are a few example places where the changes can be observed in the UI.
WorkspaceMembersPage.tsx1. Click
Workspaces2. Select a workspace
3. Click
Members4. You'll see the members count text at the top.
WorkspaceOverviewSharePage.tsx1. Click
Workspaces2. Select a workspace
3. Click
Overview4. Click
More, thenShare5. You'll see the share note with an
#adminroom link.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
WorkspaceMembersPage.tsxWorkspaceOverviewSharePage.tsxMacOS: Chrome / Safari
WorkspaceMembersPage.tsxWorkspaceOverviewSharePage.tsx