fix: Report status badge translation is not changing until page refresh#74121
fix: Report status badge translation is not changing until page refresh#74121mollfpr merged 10 commits intoExpensify:mainfrom
Conversation
|
@hungvu193 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] |
|
LGTM |
|
Failing checks are not related to this PR. Coming from #73618 |
Codecov Report✅ All modified and coverable lines are covered by tests.
... and 8 files with indirect coverage changes 🚀 New features to boost your workflow:
|
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2025-11-04.at.14.12.33.movAndroid: mWeb ChromeScreen.Recording.2025-11-04.at.14.19.00.moviOS: HybridAppiOS: mWeb SafarimSafari.movMacOS: Chrome / SafariChrome.movMacOS: DesktopDesk.mov |
|
Please merge main again @samranahm. Thanks |
joekaufmanexpensify
left a comment
There was a problem hiding this comment.
Agreed we want the badges to update immediately when you change the language 👍
|
@samranahm, could you resolve the conflict? I'll approve afterward! Thanks! |
|
Reverted offending PR #74324, this should resolve the |
|
Failing check is not related to this PR, All yours @mollfpr. |
|
@samranahm Could you pull main and add the eslint disable comment? We have other PR merged that add |
|
@mollfpr We are good to go 🚀 |
|
✋ 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/mollfpr in version: 9.2.47-0 🚀
|
|
🚀 Deployed to production by https://github.com/cristipaval in version: 9.2.47-1 🚀
|
Explanation of Change
When the language was changed, the report status text stayed in the previous locale because
useMemowasn’t recalculating on locale change. This PR addstranslateto the dependency array and passes it to the pure function, removing the deprecatedtranslateLocalusage ingetReportStatusTranslation.Fixed Issues
$ #74054
PROPOSAL: #74054 (comment)
Tests
Offline tests
QA Steps
Same as test
// TODO: These must be filled out, or the issue title must include "[No QA]."
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.Native.mp4
Android: mWeb Chrome
Android.mWeb.chrome.mp4
iOS: Native
IOS.Native.mp4
iOS: mWeb Safari
IOS.mWeb.safari.mp4
MacOS: Chrome / Safari
macOS.chrome.mp4
MacOS: Desktop
Desktop.mp4