diff --git a/config/localization/en/app.json b/config/localization/en/app.json index 73b33c179..c6c15cec4 100644 --- a/config/localization/en/app.json +++ b/config/localization/en/app.json @@ -176,8 +176,8 @@ "MAXIMUM_REWARDS": "Estimated Rewards", "MENU": "Menu", "METRICS": "Metrics", + "MID_CAP": "Mid-cap", "MIGRATE": "Migrate", - "MIN_CAP": "Min-cap", "MINE": "Mine", "MINIMUM_ORDER_SIZE": "Minimum Order Size", "MODIFY": "Modify", @@ -1352,6 +1352,19 @@ "USERS_REFERRED": "Users Referred", "YOU_CAN_WIN_THESE": "You can win these in our {LEAGUES_LINK}" }, + "STAKING_REWARDS": { + "LIQUID_STAKE_ON_STRIDE": "Liquid Stake on Stride", + "LIQUID_STAKING_AND_LEAVING": "Liquid staking and leaving website", + "LIQUID_STAKE_W_STRIDE": "Liquid Stake with Stride", + "LIQUID_STAKE_STRIDE_DESCRIPTION": "Stake your {TOKEN_DENOM} tokens for st{TOKEN_DENOM} which you can deploy around the ecosystem.", + "NAVIGATE_TO_STRIDE": "{STRONG_YES}, navigate to Stride Zone.", + "STAKE_WITH_KEPLR": "Stake with Keplr", + "STAKING_PAGE_SUBTITLE": "Stake to earn APR. Unstaking can take up to 30 days.", + "STAKING_REWARDS": "Staking Rewards" + }, + "TOKEN_GOVERNANCE": { + "GOVERNANCE_PAGE_SUBTITLE": "Participate in the ecosystem by voting on Governance proposals or submitting your own." + }, "TRADING_REWARDS" : { "ABOUT": "About", "EVENT": "Event", diff --git a/package-lock.json b/package-lock.json index 39b41dcfa..df0451ae4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@dydxprotocol/v4-localization", - "version": "1.1.25", + "version": "1.1.26", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@dydxprotocol/v4-localization", - "version": "1.1.25", + "version": "1.1.26", "license": "AGPL-3.0", "devDependencies": { "@types/node": "^20.1.7" diff --git a/package.json b/package.json index 389feb237..f0b465ae4 100644 --- a/package.json +++ b/package.json @@ -1,10 +1,15 @@ { "name": "@dydxprotocol/v4-localization", - "version": "1.1.25", + "version": "1.1.26", "description": "v4 localization", "main": "index.ts", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" + "test": "echo \"Error: no test specified\" && exit 1", + "generate": "npm run generate:app && npm run generate:notifications && npm run generate:tooltips", + "generate:app": "cd scripts && ./codegen_localization_app.swift ../config/localization/en/app.json > ./generated/app.ts && cd ..", + "generate:notifications": "cd scripts && ./codegen_localization_notifications.swift ../config/localization_notifications/en/app.json > ./generated/notifications.ts && cd ..", + "generate:tooltips": "cd scripts && ./codegen_localization_tooltips.swift ../config/localization/en/tooltips.json > ./generated/tooltips.ts && cd ..", + "bump_version": "./scripts/bump_version.sh" }, "repository": { "type": "git", diff --git a/scripts/generated/app.ts b/scripts/generated/app.ts index d2aeca5de..7c954c45c 100644 --- a/scripts/generated/app.ts +++ b/scripts/generated/app.ts @@ -343,10 +343,10 @@ export const APP_STRING_KEYS = { MAX_WITHDRAW: 'APP.GENERAL.MAX_WITHDRAW', MENU: 'APP.GENERAL.MENU', METRICS: 'APP.GENERAL.METRICS', + MID_CAP: 'APP.GENERAL.MID_CAP', MIGRATE: 'APP.GENERAL.MIGRATE', MINE: 'APP.GENERAL.MINE', MINIMUM_ORDER_SIZE: 'APP.GENERAL.MINIMUM_ORDER_SIZE', - MIN_CAP: 'APP.GENERAL.MIN_CAP', MODIFY: 'APP.GENERAL.MODIFY', NETWORK: 'APP.GENERAL.NETWORK', NEW: 'APP.GENERAL.NEW', @@ -1127,6 +1127,17 @@ export const APP_STRING_KEYS = { WAIT_SECONDS_SINGULAR: 'APP.SIGN_INTO_MOBILE.WAIT_SECONDS_SINGULAR', WHILE_ONBOARDING: 'APP.SIGN_INTO_MOBILE.WHILE_ONBOARDING', + // STAKING_REWARDS + + LIQUID_STAKE_ON_STRIDE: 'APP.STAKING_REWARDS.LIQUID_STAKE_ON_STRIDE', + LIQUID_STAKE_STRIDE_DESCRIPTION: 'APP.STAKING_REWARDS.LIQUID_STAKE_STRIDE_DESCRIPTION', + LIQUID_STAKE_W_STRIDE: 'APP.STAKING_REWARDS.LIQUID_STAKE_W_STRIDE', + LIQUID_STAKING_AND_LEAVING: 'APP.STAKING_REWARDS.LIQUID_STAKING_AND_LEAVING', + NAVIGATE_TO_STRIDE: 'APP.STAKING_REWARDS.NAVIGATE_TO_STRIDE', + STAKE_WITH_KEPLR: 'APP.STAKING_REWARDS.STAKE_WITH_KEPLR', + STAKING_PAGE_SUBTITLE: 'APP.STAKING_REWARDS.STAKING_PAGE_SUBTITLE', + STAKING_REWARDS: 'APP.STAKING_REWARDS.STAKING_REWARDS', + // TEST_FUNDS_MODAL TESTNET_DEPOSITS: 'APP.TEST_FUNDS_MODAL.TESTNET_DEPOSITS', @@ -1145,6 +1156,10 @@ export const APP_STRING_KEYS = { SYSTEM: 'APP.THEME.SYSTEM', THEME: 'APP.THEME.THEME', + // TOKEN_GOVERNANCE + + GOVERNANCE_PAGE_SUBTITLE: 'APP.TOKEN_GOVERNANCE.GOVERNANCE_PAGE_SUBTITLE', + // TRADE ADD_TRIGGERS: 'APP.TRADE.ADD_TRIGGERS', diff --git a/scripts/generated/notifications.ts b/scripts/generated/notifications.ts index fba1a9846..139e97e07 100644 --- a/scripts/generated/notifications.ts +++ b/scripts/generated/notifications.ts @@ -3,6 +3,8 @@ // Generated from ../config/localization_notifications/en/app.json using ../config/localization_notifications/en/app.json export const NOTIFICATIONS_STRING_KEYS = { + BLOCK_REWARD_BODY: 'NOTIFICATIONS.BLOCK_REWARD.BODY', + BLOCK_REWARD_TITLE: 'NOTIFICATIONS.BLOCK_REWARD.TITLE', DELEVERAGED_BODY: 'NOTIFICATIONS.DELEVERAGED.BODY', DELEVERAGED_TITLE: 'NOTIFICATIONS.DELEVERAGED.TITLE', DEPOSIT_SUCCESS_BODY: 'NOTIFICATIONS.DEPOSIT_SUCCESS.BODY',