Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

localization for staking modal #518

Merged
merged 2 commits into from
Jun 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion config/localization/en/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -989,7 +989,8 @@
"AMOUNT_TO_STAKE": "Amount to Stake",
"SELECTED_VALIDATOR": "Selected Validator",
"ENTER_AMOUNT_TO_STAKE": "Enter amount to stake",
"STAKED_BALANCE": "Staked Balance"
"STAKED_BALANCE": "Staked Balance",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i feel like staked balance got deleted at some point because the key exists in the generated file, but not here 🤷‍♀️

"STAKING_LEGAL_DISCLAIMER": "You are staking your assets to a validator node operated by a third party. The operator of this site is not responsible for such staking services provided by third parties. Stake to another validator with {KEPLR_DASHBOARD_LINK} or liquid stake with {STRIDE_LINK}."
},
"UNSTAKE_MODAL": {
"CURRENTLY_STAKING": "You're currently staking {AMOUNT}",
Expand Down
6 changes: 6 additions & 0 deletions config/localization/en/tooltips.json
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,12 @@
"BODY": "dYdX supports two types of withdraws from Layer 2. Fast withdraws carry a small fee but do not require gas and are sent immediately. Slow withdraws are free but require two steps, take much longer, and the user will have to pay their own gas fees."
}
},
"STAKE": {
"VALIDATOR_SELECTION": {
"TITLE": "Selected Validator",
"BODY": "Selection is based on lowest stake weight from a pre-configured set of validators."
}
},
"EMAIL_NOTIFICATIONS": {
"VERIFY_EMAIL": {
"TITLE": "Verify email address",
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dydxprotocol/v4-localization",
"version": "1.1.118",
"version": "1.1.119",
"description": "v4 localization",
"main": "index.ts",
"scripts": {
Expand Down
1 change: 1 addition & 0 deletions scripts/generated/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1277,6 +1277,7 @@ export const APP_STRING_KEYS = {
SELECTED_VALIDATOR: 'APP.STAKE_MODAL.SELECTED_VALIDATOR',
STAKED_BALANCE: 'APP.STAKE_MODAL.STAKED_BALANCE',
STAKE_DESCRIPTION: 'APP.STAKE_MODAL.STAKE_DESCRIPTION',
STAKING_LEGAL_DISCLAIMER: 'APP.STAKE_MODAL.STAKING_LEGAL_DISCLAIMER',

// STAKING_REWARDS

Expand Down
5 changes: 5 additions & 0 deletions scripts/generated/tooltips.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ export const TOOLTIP_STRING_KEYS = {
HOLDING_HEDGIES_BODY: 'TOOLTIPS.PORTFOLIO.HOLDING_HEDGIES.BODY',
HOLDING_HEDGIES_TITLE: 'TOOLTIPS.PORTFOLIO.HOLDING_HEDGIES.TITLE',

// STAKE

VALIDATOR_SELECTION_BODY: 'TOOLTIPS.STAKE.VALIDATOR_SELECTION.BODY',
VALIDATOR_SELECTION_TITLE: 'TOOLTIPS.STAKE.VALIDATOR_SELECTION.TITLE',

// TOKEN_MIGRATION

DYDX_CHAIN_SETTLEMENT_BODY: 'TOOLTIPS.TOKEN_MIGRATION.DYDX_CHAIN_SETTLEMENT.BODY',
Expand Down
Loading