Skip to content

Commit 9cce51e

Browse files
fix: sentence case violations 4001-5000 of locales file (#23996)
## **Description** This PR fixes sentence case violations in lines 4001-5000 of the `locales/languages/en.json` file as part of ongoing content papercut improvements. The changes convert Title Case strings to sentence case following standard capitalization conventions. **What is the reason for the change?** Content consistency and adherence to proper sentence case formatting across the app. **What is the improvement/solution?** Updated ~34 locale keys from Title Case to sentence case, and updated all affected test files to match the new casing. ## **Changelog** CHANGELOG entry: Fixed sentence case violations in English locale strings lines 4001-5000 ## **Related issues** Fixes: Part of content papercut improvements batch 5 Follows: #23499 (lines 1-1000), #23516 (lines 1001-2000), #23957 (lines 2001-3000), #23994 (lines 3001-4000) Related: #23272 (original comprehensive PR) ## **Manual testing steps** ```gherkin Feature: Locale string display Scenario: user views UI elements with updated locale strings Given the app is running with the updated locale file When user imports a wallet Then "Import account" title should display in sentence case And "Paste your Secret Recovery Phrase" should display in sentence case When user creates a new wallet Then "Create password" should display in sentence case And "Learn more" should display in sentence case When user backs up their wallet Then "Cancel backup" should display in sentence case And "Security tips" should display in sentence case When user views receive request Then all strings should display in proper sentence case When user views ramp/checkout flows Then all UI text should display in proper sentence case ``` ## **Screenshots/Recordings** N/A - This is a content-only change with no visual differences beyond text casing ## **Pre-merge author checklist** - [x] I've followed [MetaMask Contributor Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask Mobile Coding Standards](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/CODING_GUIDELINES.md). - [x] I've completed the PR template to the best of my ability - [x] I've included tests if applicable - [x] I've documented my code using [JSDoc](https://jsdoc.app/) format if applicable - [x] I've applied the right labels on the PR (see [labeling guidelines](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/LABELING_GUIDELINES.md)). ## **Pre-merge reviewer checklist** - [ ] I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed). - [ ] I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots. --- ## **Technical Details** ### Changes Made: - **Locale file**: Updated ~34 keys in `locales/languages/en.json` (lines 4001-5000) - **Test files**: No direct test file changes (only snapshots) - **Snapshots**: Regenerated 8 snapshot files to match new casing ### Affected Areas: - Import Private Key flow - Import SRP (Secret Recovery Phrase) flow - Onboarding vault creation - Account backup flows (steps 1-7) - Manual backup process - Ramp/Checkout flows - Order details - Fiat selector modal - Eligibility failed modal - Receive request screens ### Validation: - All affected unit tests pass - No old Title Case strings remain in updated snapshot files - Changes are purely cosmetic (text casing only) 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- CURSOR_SUMMARY --> --- > [!NOTE] > Converts Title Case to sentence case in the English locale (lines 4001–5000) and updates all affected tests and snapshots to match. > > - **Locales**: > - Update `locales/languages/en.json` (~34 keys) to sentence case (e.g., import private key, secure wallet, on-ramp/order details, region/fiat labels, notifications, prompts). > - **Tests & Snapshots**: > - Align text expectations with sentence case across ramp views (`BuildQuote`, `Quotes`, `Checkout`, `OrderDetails`), modals (`FiatSelectorModal`, `IncompatibleAccountTokenModal`, `UnsupportedRegionModal`, `EligibilityFailedModal`, `RampUnsupportedModal`), `ReceiveRequest`, `ImportPrivateKey`, and `ManualBackupStep1`. > - Regenerate snapshots and update queries/buttons (e.g., `"Return to home screen"`, `"Contact support"`, `"Got it"`, `"Create password"`). > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit 1632f86. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY -->
1 parent 9fed5ce commit 9cce51e

File tree

18 files changed

+156
-156
lines changed

18 files changed

+156
-156
lines changed

app/components/UI/Ramp/Aggregator/Views/BuildQuote/BuildQuote.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ describe('BuildQuote View', () => {
402402
};
403403
render(BuildQuote);
404404
fireEvent.press(
405-
screen.getByRole('button', { name: 'Return to Home Screen' }),
405+
screen.getByRole('button', { name: 'Return to home screen' }),
406406
);
407407
expect(mockPop).toBeCalledTimes(1);
408408

@@ -416,7 +416,7 @@ describe('BuildQuote View', () => {
416416
};
417417
render(BuildQuote);
418418
fireEvent.press(
419-
screen.getByRole('button', { name: 'Return to Home Screen' }),
419+
screen.getByRole('button', { name: 'Return to home screen' }),
420420
);
421421
expect(mockPop).toBeCalledTimes(1);
422422
});

app/components/UI/Ramp/Aggregator/Views/BuildQuote/__snapshots__/BuildQuote.test.tsx.snap

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3147,7 +3147,7 @@ exports[`BuildQuote View Crypto Currency Data renders a special error page if cr
31473147
}
31483148
}
31493149
>
3150-
No Tokens Available
3150+
No tokens available
31513151
</Text>
31523152
</View>
31533153
<View
@@ -3795,7 +3795,7 @@ exports[`BuildQuote View Crypto Currency Data renders a special error page if cr
37953795
}
37963796
}
37973797
>
3798-
No Tokens Available
3798+
No tokens available
37993799
</Text>
38003800
</View>
38013801
<View
@@ -24524,7 +24524,7 @@ exports[`BuildQuote View renders correctly when sdkError is present 1`] = `
2452424524
}
2452524525
}
2452624526
>
24527-
Return to Home Screen
24527+
Return to home screen
2452824528
</Text>
2452924529
</TouchableOpacity>
2453024530
</View>
@@ -25172,7 +25172,7 @@ exports[`BuildQuote View renders correctly when sdkError is present 2`] = `
2517225172
}
2517325173
}
2517425174
>
25175-
Return to Home Screen
25175+
Return to home screen
2517625176
</Text>
2517725177
</TouchableOpacity>
2517825178
</View>

app/components/UI/Ramp/Aggregator/Views/Checkout/__snapshots__/Checkout.test.tsx.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1949,7 +1949,7 @@ exports[`Checkout displays sdkError when present 1`] = `
19491949
}
19501950
}
19511951
>
1952-
Return to Home Screen
1952+
Return to home screen
19531953
</Text>
19541954
</TouchableOpacity>
19551955
</View>

app/components/UI/Ramp/Aggregator/Views/OrderDetails/OrderDetails.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ describe('OrderDetails', () => {
500500

501501
render(OrderDetails, [testOrder as FiatOrder]);
502502

503-
fireEvent.press(screen.getByText('Contact Support'));
503+
fireEvent.press(screen.getByText('Contact support'));
504504
expect(mockTrackEvent).toHaveBeenCalledWith(
505505
'ONRAMP_EXTERNAL_LINK_CLICKED',
506506
{

app/components/UI/Ramp/Aggregator/Views/OrderDetails/__snapshots__/OrderDetails.test.tsx.snap

Lines changed: 54 additions & 54 deletions
Large diffs are not rendered by default.

app/components/UI/Ramp/Aggregator/Views/Quotes/Quotes.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -997,7 +997,7 @@ describe('Quotes', () => {
997997
};
998998
render(Quotes);
999999
fireEvent.press(
1000-
screen.getByRole('button', { name: 'Return to Home Screen' }),
1000+
screen.getByRole('button', { name: 'Return to home screen' }),
10011001
);
10021002
expect(mockPop).toBeCalledTimes(1);
10031003
act(() => {

app/components/UI/Ramp/Aggregator/Views/Quotes/__snapshots__/Quotes.test.tsx.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8408,7 +8408,7 @@ exports[`Quotes renders correctly with sdkError 1`] = `
84088408
}
84098409
}
84108410
>
8411-
Return to Home Screen
8411+
Return to home screen
84128412
</Text>
84138413
</TouchableOpacity>
84148414
</View>

app/components/UI/Ramp/Aggregator/components/FiatSelectorModal/__snapshots__/FiatSelectorModal.test.tsx.snap

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ exports[`FiatSelectorModal renders the modal with currency list 1`] = `
477477
}
478478
}
479479
>
480-
Select Region Currency
480+
Select region currency
481481
</Text>
482482
</View>
483483
<View>
@@ -1413,7 +1413,7 @@ exports[`FiatSelectorModal search displays filtered currencies when search strin
14131413
}
14141414
}
14151415
>
1416-
Select Region Currency
1416+
Select region currency
14171417
</Text>
14181418
</View>
14191419
<View>
@@ -2349,7 +2349,7 @@ exports[`FiatSelectorModal search displays filtered currencies when search strin
23492349
}
23502350
}
23512351
>
2352-
Select Region Currency
2352+
Select region currency
23532353
</Text>
23542354
</View>
23552355
<View>
@@ -3285,7 +3285,7 @@ exports[`FiatSelectorModal search displays max 20 results 1`] = `
32853285
}
32863286
}
32873287
>
3288-
Select Region Currency
3288+
Select region currency
32893289
</Text>
32903290
</View>
32913291
<View>

app/components/UI/Ramp/Aggregator/components/IncompatibleAccountTokenModal/__snapshots__/IncompatibleAccountTokenModal.test.tsx.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ exports[`IncompatibleAccountTokenModal renders the modal with the correct title
478478
}
479479
}
480480
>
481-
Incompatible Account
481+
Incompatible account
482482
</Text>
483483
</View>
484484
<View>

app/components/UI/Ramp/Aggregator/components/UnsupportedRegionModal/__snapshots__/UnsupportedRegionModal.test.tsx.snap

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ exports[`UnsupportedRegionModal renders correctly for buy flow 1`] = `
452452
}
453453
}
454454
>
455-
Region Not Supported
455+
Region not supported
456456
</Text>
457457
</View>
458458
</View>
@@ -532,7 +532,7 @@ exports[`UnsupportedRegionModal renders correctly for buy flow 1`] = `
532532
}
533533
}
534534
>
535-
Visit Support Article
535+
Visit support article
536536
</Text>
537537
</TouchableOpacity>
538538
</View>
@@ -1048,7 +1048,7 @@ exports[`UnsupportedRegionModal renders correctly for sell flow 1`] = `
10481048
}
10491049
}
10501050
>
1051-
Region Not Supported
1051+
Region not supported
10521052
</Text>
10531053
</View>
10541054
</View>
@@ -1128,7 +1128,7 @@ exports[`UnsupportedRegionModal renders correctly for sell flow 1`] = `
11281128
}
11291129
}
11301130
>
1131-
Visit Support Article
1131+
Visit support article
11321132
</Text>
11331133
</TouchableOpacity>
11341134
</View>

0 commit comments

Comments
 (0)