Skip to content

Commit

Permalink
Add strings for block reward notifications (#227)
Browse files Browse the repository at this point in the history
  • Loading branch information
rosepuppy authored Jan 9, 2024
1 parent 4795168 commit 57a2e2d
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 3 deletions.
4 changes: 3 additions & 1 deletion config/localization/en/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -1156,6 +1156,7 @@
"66_REDUCTION": "66% reduction",
"ADJUSTED_IMR": "Adjusted Margin",
"ADJUSTED_IMR_BODY": "We have temporarily {ACTION} the Initial Margin Requirements on {MARKET} to {PERCENT} due to volatility. {ADDITIONAL_NOTE}",
"BLOCK_REWARD": "Block reward",
"CLOSE_MARKET_POSITIONS": "Close your {MARKET} position",
"CLOSE_MARKET_POSITIONS_BODY": "{MARKET} is set to close only mode and the close price of {MARKET} is now fixed. Please close your open {MARKET} position as soon as you are able. We're here to help via the help chat if you run into issues.",
"COMPLIANCE_ALERT": "Compliance alert",
Expand Down Expand Up @@ -1200,7 +1201,8 @@
"INITIATED_WITHDRAWAL": "Initiated withdrawal",
"WITHDRAW_IN_PROGRESS": "Withdrawal(s) in progress...",
"WITHDRAW_TO_CHAIN": "Withdraw to {CHAIN}"
}
},
"TRADING_REWARD_RECEIVED": "Trading reward received"
},
"EMAIL_NOTIFICATIONS": {
"ACCOUNT_DESCRIPTION": "Deposits, Withdrawals, Account Updates",
Expand Down
26 changes: 24 additions & 2 deletions scripts/generated/app.ts
Original file line number Diff line number Diff line change
@@ -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 = {

Expand Down Expand Up @@ -313,6 +313,7 @@ export const APP_STRING_KEYS = {
LAYER_1: 'APP.GENERAL.LAYER_1',
LEARN: 'APP.GENERAL.LEARN',
LEARN_MORE: 'APP.GENERAL.LEARN_MORE',
LEARN_MORE_ARROW: 'APP.GENERAL.LEARN_MORE_ARROW',
LEGACY: 'APP.GENERAL.LEGACY',
LEVERAGE: 'APP.GENERAL.LEVERAGE',
LIVE: 'APP.GENERAL.LIVE',
Expand Down Expand Up @@ -379,7 +380,9 @@ export const APP_STRING_KEYS = {
REFERRAL_CODE: 'APP.GENERAL.REFERRAL_CODE',
REFERRER_PERCENT_OFF: 'APP.GENERAL.REFERRER_PERCENT_OFF',
RESULTS: 'APP.GENERAL.RESULTS',
REWARDED: 'APP.GENERAL.REWARDED',
REWARDS: 'APP.GENERAL.REWARDS',
REWARD_HISTORY: 'APP.GENERAL.REWARD_HISTORY',
SAVE: 'APP.GENERAL.SAVE',
SAVED: 'APP.GENERAL.SAVED',
SELECT_ASSET: 'APP.GENERAL.SELECT_ASSET',
Expand Down Expand Up @@ -420,6 +423,7 @@ export const APP_STRING_KEYS = {
LAST_WEEK: 'APP.GENERAL.TIME_STRINGS.LAST_WEEK',
MINUTES_ABBREVIATED: 'APP.GENERAL.TIME_STRINGS.MINUTES_ABBREVIATED',
MINUTES_SHORT: 'APP.GENERAL.TIME_STRINGS.MINUTES_SHORT',
MONTHLY: 'APP.GENERAL.TIME_STRINGS.MONTHLY',
MONTHS_ABBREVIATED: 'APP.GENERAL.TIME_STRINGS.MONTHS_ABBREVIATED',
PAST_30D: 'APP.GENERAL.TIME_STRINGS.PAST_30D',
PAST_HOUR: 'APP.GENERAL.TIME_STRINGS.PAST_HOUR',
Expand All @@ -433,6 +437,7 @@ export const APP_STRING_KEYS = {
TODAY: 'APP.GENERAL.TIME_STRINGS.TODAY',
TODAY_LOWERCASED: 'APP.GENERAL.TIME_STRINGS.TODAY_LOWERCASED',
WEEK: 'APP.GENERAL.TIME_STRINGS.WEEK',
WEEKLY: 'APP.GENERAL.TIME_STRINGS.WEEKLY',
WEEKS: 'APP.GENERAL.TIME_STRINGS.WEEKS',
WEEKS_ABBREVIATED: 'APP.GENERAL.TIME_STRINGS.WEEKS_ABBREVIATED',
X_HOURS_LOWERCASED: 'APP.GENERAL.TIME_STRINGS.X_HOURS_LOWERCASED',
Expand All @@ -452,6 +457,8 @@ export const APP_STRING_KEYS = {
TRADING: 'APP.GENERAL.TRADING',
TRADING_FEE_REDUCTION: 'APP.GENERAL.TRADING_FEE_REDUCTION',
TRADING_FEE_REDUCTION_DESCRIPTION_2: 'APP.GENERAL.TRADING_FEE_REDUCTION_DESCRIPTION_2',
TRADING_REWARDS: 'APP.GENERAL.TRADING_REWARDS',
TRADING_REWARDS_SUMMARY: 'APP.GENERAL.TRADING_REWARDS_SUMMARY',
TRAILING_STOP_SHORT: 'APP.GENERAL.TRAILING_STOP_SHORT',
TRANSFER: 'APP.GENERAL.TRANSFER',
TRANSFERS: 'APP.GENERAL.TRANSFERS',
Expand Down Expand Up @@ -652,6 +659,7 @@ export const APP_STRING_KEYS = {
'66_REDUCTION': 'APP.NOTIFICATIONS.66_REDUCTION',
ADJUSTED_IMR: 'APP.NOTIFICATIONS.ADJUSTED_IMR',
ADJUSTED_IMR_BODY: 'APP.NOTIFICATIONS.ADJUSTED_IMR_BODY',
BLOCK_REWARD: 'APP.NOTIFICATIONS.BLOCK_REWARD',
CLOSE_MARKET_POSITIONS: 'APP.NOTIFICATIONS.CLOSE_MARKET_POSITIONS',
CLOSE_MARKET_POSITIONS_BODY: 'APP.NOTIFICATIONS.CLOSE_MARKET_POSITIONS_BODY',
COMPLIANCE_ALERT: 'APP.NOTIFICATIONS.COMPLIANCE_ALERT',
Expand Down Expand Up @@ -688,6 +696,7 @@ export const APP_STRING_KEYS = {
SLOW_WITHDRAW_PENDING_DESCRIPTION: 'APP.NOTIFICATIONS.SLOW_WITHDRAW_PENDING_DESCRIPTION',
SUSPICIOUS_TRADE: 'APP.NOTIFICATIONS.SUSPICIOUS_TRADE',
SUSPICIOUS_TRADE_BODY: 'APP.NOTIFICATIONS.SUSPICIOUS_TRADE_BODY',
TRADING_REWARD_RECEIVED: 'APP.NOTIFICATIONS.TRADING_REWARD_RECEIVED',

// TRANSFER_STATUS

Expand Down Expand Up @@ -910,7 +919,6 @@ export const APP_STRING_KEYS = {
TRADING_LEAGUES: 'APP.PORTFOLIO.TRADING_LEAGUES',
TRADING_LEAGUES_DESCRIPTION: 'APP.PORTFOLIO.TRADING_LEAGUES_DESCRIPTION',
TRADING_LEAGUES_PRIZE: 'APP.PORTFOLIO.TRADING_LEAGUES_PRIZE',
TRADING_REWARDS: 'APP.PORTFOLIO.TRADING_REWARDS',
TRADING_VOLUME_LABEL: 'APP.PORTFOLIO.TRADING_VOLUME_LABEL',
TRAILING_VOLUME: 'APP.PORTFOLIO.TRAILING_VOLUME',
TRANSACTION: 'APP.PORTFOLIO.TRANSACTION',
Expand Down Expand Up @@ -1287,6 +1295,20 @@ export const APP_STRING_KEYS = {
STOP_AND_PROFIT_LIMIT_BODY: 'APP.TRADE_BOX_CARDS.STOP_AND_PROFIT_LIMIT_BODY',
STOP_AND_PROFIT_LIMIT_TITLE: 'APP.TRADE_BOX_CARDS.STOP_AND_PROFIT_LIMIT_TITLE',

// TRADING_REWARDS

EVENT: 'APP.TRADING_REWARDS.EVENT',
FAQ_HOW_DO_I_CLAIM_MY_REWARDS_ANSWER: 'APP.TRADING_REWARDS.FAQ_HOW_DO_I_CLAIM_MY_REWARDS_ANSWER',
FAQ_HOW_DO_I_CLAIM_MY_REWARDS_QUESTION: 'APP.TRADING_REWARDS.FAQ_HOW_DO_I_CLAIM_MY_REWARDS_QUESTION',
FAQ_HOW_DO_TRADING_REWARDS_WORK_ANSWER: 'APP.TRADING_REWARDS.FAQ_HOW_DO_TRADING_REWARDS_WORK_ANSWER',
FAQ_HOW_DO_TRADING_REWARDS_WORK_QUESTION: 'APP.TRADING_REWARDS.FAQ_HOW_DO_TRADING_REWARDS_WORK_QUESTION',
FAQ_WHO_IS_ELIGIBLE_ANSWER: 'APP.TRADING_REWARDS.FAQ_WHO_IS_ELIGIBLE_ANSWER',
FAQ_WHO_IS_ELIGIBLE_QUESTION: 'APP.TRADING_REWARDS.FAQ_WHO_IS_ELIGIBLE_QUESTION',
FOR_TRADING: 'APP.TRADING_REWARDS.FOR_TRADING',
LAUNCH_INCENTIVES: 'APP.TRADING_REWARDS.LAUNCH_INCENTIVES',
SEASON_ID: 'APP.TRADING_REWARDS.SEASON_ID',
TRADING_REWARD: 'APP.TRADING_REWARDS.TRADING_REWARD',

// USER_SURVEY

USER_SURVEY_BODY: 'APP.USER_SURVEY.USER_SURVEY_BODY',
Expand Down

0 comments on commit 57a2e2d

Please sign in to comment.