Skip to content

Commit

Permalink
Add stride localization & scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredvu committed Feb 8, 2024
1 parent a4e056f commit 4d197b3
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 6 deletions.
15 changes: 14 additions & 1 deletion config/localization/en/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
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.

9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
17 changes: 16 additions & 1 deletion scripts/generated/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand All @@ -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',
Expand Down
2 changes: 2 additions & 0 deletions scripts/generated/notifications.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 4d197b3

Please sign in to comment.