From 1bd1db786d9c6357c395753d187595959e8e8fb4 Mon Sep 17 00:00:00 2001 From: jaredvu Date: Tue, 7 Nov 2023 09:41:45 -0800 Subject: [PATCH 1/2] Add strings for Push Notifs and Transfer Notifs --- config/localization/en/app.json | 9 +++++++-- package-lock.json | 4 ++-- package.json | 2 +- scripts/generated/app.ts | 7 ++++++- 4 files changed, 16 insertions(+), 6 deletions(-) diff --git a/config/localization/en/app.json b/config/localization/en/app.json index 60e57bfcc..4aa13e865 100644 --- a/config/localization/en/app.json +++ b/config/localization/en/app.json @@ -64,6 +64,7 @@ "CATEGORY": "Category", "CHAINS": "Chains", "CLEAR": "Clear", + "CLEAR_ALL": "Clear All", "CLICK_HERE": "Click here", "CLOSE": "Close", "COMING_SOON": "Coming soon", @@ -657,8 +658,9 @@ "COULD_NOT_FIND_AFFILIATE": "We couldn't find this affiliate, please check the link.", "CREATE_OR_VERIFY_COSMOS_ADDRESS": "Create or verify Cosmos address.", "CREDITED_WITH": "Your account will be credited with ${AMOUNT_USD} in test funds.", - "DEPOSIT_STATUS": "Your deposit of {AMOUNT_USD} will be available in approximately {ESTIMATED_DURATION}.", + "DEPOSIT_OF": "Deposit of {AMOUNT_USD}", "DEPOSIT_COMPLETE": "Your deposit of {AMOUNT_USD} is now available.", + "DEPOSIT_STATUS": "Your deposit of {AMOUNT_USD} will be available in approximately {ESTIMATED_DURATION}.", "DONT_MISS": "Don't miss your chance to get a {DISCOUNT} on trading fees!", "ENABLE_API": "Enable secure access to our API for lightning quick trading", "ENABLE_TRADING": "Enable trading", @@ -728,8 +730,9 @@ "WANT_TO_LEARN": "Want to learn more?", "WELCOME_DYDX": "Welcome to dYdX", "WELCOME": "Welcome", - "WITHDRAW_STATUS": "Your withdrawal of {AMOUNT_USD} will be available in approximately {ESTIMATED_DURATION}.", "WITHDRAW_COMPLETE": "Your withdrawal of {AMOUNT_USD} is now available.", + "WITHDRAW_OF": "Withdraw of {AMOUNT_USD}", + "WITHDRAW_STATUS": "Your withdrawal of {AMOUNT_USD} will be available in approximately {ESTIMATED_DURATION}.", "WRONG_NETWORK_EXPLANATION_PRODUCTION": "To complete dYdX onboarding, set your wallet network to 'Ethereum Mainnet'.", "WRONG_NETWORK_EXPLANATION_STAGING": "To complete dYdX onboarding, set your wallet network to 'Goerli Test Network'.", "WRONG_NETWORK": "Wrong network", @@ -1224,6 +1227,8 @@ "DEPOSIT_SUCCESS": "Deposit success!", "DIRECT_TRANSFER_SUCCESS": "Direct transfer success!", "DIRECT_TRANSFER_SUCCESS_DESCRIPTION": "Your direct transfer of {AMOUNT_ELEMENT} has been confirmed.", + "DISABLE_PUSH_NOTIFICATIONS": "Disable Push Notifications", + "ENABLE_PUSH_NOTIFICATIONS": "Enable Push Notifications", "EPOCH_REWARDS": "Epoch {EPOCH_NUMBER} Rewards", "EPOCH_REWARDS_BODY": "You earned {DYDX} $DYDX rewards during Epoch {EPOCH_NUMBER}!", "FAST_WITHDRAW_PENDING_DESCRIPTION": "Your fast withdraw of {AMOUNT_ELEMENT} is pending confirmation on Layer 1.", diff --git a/package-lock.json b/package-lock.json index 016e07f79..bd25d76f4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@dydxprotocol/v4-localization", - "version": "1.0.2", + "version": "1.0.3", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@dydxprotocol/v4-localization", - "version": "1.0.2", + "version": "1.0.3", "license": "AGPL-3.0", "devDependencies": { "@types/node": "^20.1.7" diff --git a/package.json b/package.json index 3a01a2147..3bba4f085 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@dydxprotocol/v4-localization", - "version": "1.0.2", + "version": "1.0.3", "description": "v4 localization", "main": "index.ts", "scripts": { diff --git a/scripts/generated/app.ts b/scripts/generated/app.ts index d9541a0a9..0c291f7fd 100644 --- a/scripts/generated/app.ts +++ b/scripts/generated/app.ts @@ -1,6 +1,6 @@ // !! GENERATED FILE - DO NOT EDIT -// Generated from ../config/localization/en/app.json using ./codegen_localization_app.swift +// Generated from ../config/localization/en/app.json using codegen_localization_app.swift export const APP_STRING_KEYS = { @@ -331,6 +331,7 @@ export const APP_STRING_KEYS = { CATEGORY: 'APP.GENERAL.CATEGORY', CHAINS: 'APP.GENERAL.CHAINS', CLEAR: 'APP.GENERAL.CLEAR', + CLEAR_ALL: 'APP.GENERAL.CLEAR_ALL', CLICK_HERE: 'APP.GENERAL.CLICK_HERE', CLOSE: 'APP.GENERAL.CLOSE', COMING_SOON: 'APP.GENERAL.COMING_SOON', @@ -756,6 +757,8 @@ export const APP_STRING_KEYS = { DEPOSIT_SUCCESS_DESCRIPTION: 'APP.NOTIFICATIONS.DEPOSIT_SUCCESS_DESCRIPTION', DIRECT_TRANSFER_SUCCESS: 'APP.NOTIFICATIONS.DIRECT_TRANSFER_SUCCESS', DIRECT_TRANSFER_SUCCESS_DESCRIPTION: 'APP.NOTIFICATIONS.DIRECT_TRANSFER_SUCCESS_DESCRIPTION', + DISABLE_PUSH_NOTIFICATIONS: 'APP.NOTIFICATIONS.DISABLE_PUSH_NOTIFICATIONS', + ENABLE_PUSH_NOTIFICATIONS: 'APP.NOTIFICATIONS.ENABLE_PUSH_NOTIFICATIONS', EPOCH_REWARDS: 'APP.NOTIFICATIONS.EPOCH_REWARDS', EPOCH_REWARDS_BODY: 'APP.NOTIFICATIONS.EPOCH_REWARDS_BODY', FAST_WITHDRAW_PENDING: 'APP.NOTIFICATIONS.FAST_WITHDRAW_PENDING', @@ -814,6 +817,7 @@ export const APP_STRING_KEYS = { DEPOSIT_ALERT_SUBTITLE: 'APP.ONBOARDING.DEPOSIT_ALERT_SUBTITLE', DEPOSIT_ALERT_TITLE: 'APP.ONBOARDING.DEPOSIT_ALERT_TITLE', DEPOSIT_COMPLETE: 'APP.ONBOARDING.DEPOSIT_COMPLETE', + DEPOSIT_OF: 'APP.ONBOARDING.DEPOSIT_OF', DEPOSIT_STATUS: 'APP.ONBOARDING.DEPOSIT_STATUS', DEPOSIT_TO_DESTINATION: 'APP.ONBOARDING.DEPOSIT_TO_DESTINATION', DEPOSIT_TO_DYDX: 'APP.ONBOARDING.DEPOSIT_TO_DYDX', @@ -900,6 +904,7 @@ export const APP_STRING_KEYS = { WITHDRAWAL_ALERT_SUBTITLE: 'APP.ONBOARDING.WITHDRAWAL_ALERT_SUBTITLE', WITHDRAWAL_ALERT_TITLE: 'APP.ONBOARDING.WITHDRAWAL_ALERT_TITLE', WITHDRAW_COMPLETE: 'APP.ONBOARDING.WITHDRAW_COMPLETE', + WITHDRAW_OF: 'APP.ONBOARDING.WITHDRAW_OF', WITHDRAW_STATUS: 'APP.ONBOARDING.WITHDRAW_STATUS', WRONG_NETWORK: 'APP.ONBOARDING.WRONG_NETWORK', WRONG_NETWORK_EXPLANATION_PRODUCTION: 'APP.ONBOARDING.WRONG_NETWORK_EXPLANATION_PRODUCTION', From f7b94eae670f1764fc22c66bca41f37fdaf336c5 Mon Sep 17 00:00:00 2001 From: jaredvu Date: Tue, 7 Nov 2023 10:59:35 -0800 Subject: [PATCH 2/2] bump 1.0.4 --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index bd25d76f4..07dd02418 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@dydxprotocol/v4-localization", - "version": "1.0.3", + "version": "1.0.4", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@dydxprotocol/v4-localization", - "version": "1.0.3", + "version": "1.0.4", "license": "AGPL-3.0", "devDependencies": { "@types/node": "^20.1.7" diff --git a/package.json b/package.json index 3bba4f085..26a6eb349 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@dydxprotocol/v4-localization", - "version": "1.0.3", + "version": "1.0.4", "description": "v4 localization", "main": "index.ts", "scripts": {