fix(rewards): localize campaign date#29808
Conversation
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
No E2E tests exist for the Rewards/Campaigns area. The change is a self-contained utility refactor covered by unit tests. It does not affect any critical paths (confirmations, swaps, accounts, network, browser, snaps, etc.), shared components (TabBar, modals, navigation), or any controller/Engine code. The risk is low and no E2E tags are warranted. Performance Test Selection: |
|



Description
Changelog
CHANGELOG entry: null
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Performance checks (if applicable)
trace()for usage andaddTokenfor an exampleFor performance guidelines and tooling, see the Performance Guide.
Pre-merge reviewer checklist
Note
Low Risk
Low risk: swaps a hardcoded month-name formatter for cached
Intl.DateTimeFormatusing the app locale, plus a small Jest mock adjustment; behavior changes are limited to date label rendering.Overview
Campaign tile date labels are now localized by formatting month/day via
getIntlDateTimeFormatterusingI18n.locale, replacing the prior hardcoded English month list.Tests were updated to mock the
i18nmodule’s default export (locale) so the new locale-aware formatter can run under Jest.Reviewed by Cursor Bugbot for commit 38c82e4. Bugbot is set up for automated code reviews on this repo. Configure here.