Skip to content

Commit 7b432cb

Browse files
chore(runway): cherry-pick feat(card): cp-7.58.0 add delegation translations (#21820)
- feat(card): cp-7.58.0 add delegation translations (#21816) <!-- Please submit this PR as a draft initially. Do not mark it as "Ready for review" until the template has been completely filled out, and PR status checks have passed at least once. --> ## **Description** <!-- Write a short description of the changes included in this pull request, also include relevant motivation and context. Have in mind the following questions: 1. What is the reason for the change? 2. What is the improvement/solution? --> This PR add translations strings for the Card delegation flow. ## **Changelog** <!-- If this PR is not End-User-Facing and should not show up in the CHANGELOG, you can choose to either: 1. Write `CHANGELOG entry: null` 2. Label with `no-changelog` If this PR is End-User-Facing, please write a short User-Facing description in the past tense like: `CHANGELOG entry: Added a new tab for users to see their NFTs` `CHANGELOG entry: Fixed a bug that was causing some NFTs to flicker` (This helps the Release Engineer do their job more quickly and accurately) --> CHANGELOG entry: ## **Related issues** Fixes: ## **Manual testing steps** ```gherkin Feature: my feature name Scenario: user [verb for user action] Given [describe expected initial app state] When user [verb for user action] Then [describe expected outcome] ``` ## **Screenshots/Recordings** <!-- If applicable, add screenshots and/or recordings to visualize the before and after of your change. --> ### **Before** <!-- [screenshots/recordings] --> ### **After** <!-- [screenshots/recordings] --> ## **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)). Not required for external contributors. ## **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. <!-- CURSOR_SUMMARY --> --- > [!NOTE] > Adds new English translations for Card spending limits, asset selection/enable flows, and logout, plus a minor copy tweak. > > - **i18n (Card)**: > - **New flows**: > - `card_spending_limit`: strings for setting/editing limits and access modes. > - `change_asset`: strings for changing token/network and enabling tokens. > - **Asset selection**: > - Top-level keys: `select_asset`, `search_tokens`, `no_tokens_found`, `no_tokens_available`. > - `asset_selection`: status labels and update success/error. > - **Home updates (`card_home`)**: > - Added: `spending_limit_warning`, `logout`, `logout_description`. > - Copy tweak: `manage_card_options.advanced_card_management_description`. > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit 46ce21d. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY --> [44bbbe0](44bbbe0) Co-authored-by: Bruno Nascimento <[email protected]>
1 parent 8ade70e commit 7b432cb

File tree

1 file changed

+43
-1
lines changed

1 file changed

+43
-1
lines changed

locales/languages/en.json

Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6034,6 +6034,9 @@
60346034
"change_asset": "Change asset",
60356035
"enable_card_button_label": "Enable Card",
60366036
"enable_assets_button_label": "Enable Assets",
6037+
"spending_limit_warning": "You're close to your spending limit. Update to avoid declines.",
6038+
"logout": "Log out",
6039+
"logout_description": "Log out from your MetaMask Card account",
60376040
"warnings": {
60386041
"close_spending_limit": {
60396042
"title": "You're close to your spending limit",
@@ -6063,9 +6066,48 @@
60636066
"manage_spending_limit_description_restricted": "Limited spending is on",
60646067
"manage_spending_limit_description_full": "Full access is on",
60656068
"manage_card": "Manage card",
6066-
"advanced_card_management_description": "Detailed transactions, freeze card, and more"
6069+
"advanced_card_management_description": "See card details, transactions and more"
60676070
}
60686071
},
6072+
"card_spending_limit": {
6073+
"title_change_token": "Change token and network",
6074+
"title_enable_token": "Enable token",
6075+
"full_access_title": "Full access",
6076+
"full_access_description": "Your card can use your funds automatically, without asking for approval each time.",
6077+
"restricted_limit_title": "Limited spending",
6078+
"restricted_limit_description": "You'll need to come back and pay a network fee every time you want to increase the limit.",
6079+
"edit_limit": "Edit limit",
6080+
"confirm_new_limit": "Confirm",
6081+
"cancel": "Cancel",
6082+
"set_new_limit": "Set a limit",
6083+
"dismiss": "Dismiss",
6084+
"update_success": "Spending limit updated successfully",
6085+
"update_error": "Failed to update spending limit"
6086+
},
6087+
"change_asset": {
6088+
"title": "Change token and network",
6089+
"full_spending_access": "Full spending access",
6090+
"full_spending_description": "Your card can use your funds automatically, without asking for approval each time.",
6091+
"edit_limit": "Edit limit",
6092+
"enable_token": "Enable token",
6093+
"cancel": "Cancel",
6094+
"done": "Done",
6095+
"confirm": "Confirm",
6096+
"checking_allowance": "Checking token allowance...",
6097+
"token_not_enabled": "This token needs to be enabled for card spending",
6098+
"token_enabled": "Token is enabled for card spending"
6099+
},
6100+
"select_asset": "Select token and network",
6101+
"search_tokens": "Search tokens",
6102+
"no_tokens_found": "No tokens found",
6103+
"no_tokens_available": "No tokens available",
6104+
"asset_selection": {
6105+
"enabled": "Enabled",
6106+
"limited": "Limited",
6107+
"not_enabled": "Not enabled",
6108+
"update_success": "Spend priority updated successfully",
6109+
"update_error": "Failed to update spend priority"
6110+
},
60696111
"card_authentication": {
60706112
"title": "Log in to your MetaMask Card account",
60716113
"location_button_text": "International",

0 commit comments

Comments
 (0)