Skip to content

Commit

Permalink
localize rewards distributed notification (#503)
Browse files Browse the repository at this point in the history
* translate

* 1.1.112

* fix
  • Loading branch information
moo-onthelawn authored Jun 5, 2024
1 parent fddf544 commit ac4d790
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 3 deletions.
1 change: 1 addition & 0 deletions config/localization/en/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -1105,6 +1105,7 @@
"LAUNCH_INCENTIVES_DESCRIPTION": "Earn trading rewards each season. View how you compare to other traders and view past seasons on the leaderboard.",
"LAUNCH_INCENTIVES_SEASON_BEGINS_SOON": "Season {SEASON_NUMBER} begins soon!",
"LAUNCH_INCENTIVES_SEASON_NUM": "Season {SEASON_NUMBER}",
"LAUNCH_INCENTIVES_SEASON_REWARDS": "Season {SEASON_NUMBER} rewards",
"LAUNCH_INCENTIVES_SEASON_SUMMARY": "{NUM_POINTS} received during Season {SEASON_NUMBER}, which ended on {PAST_DATE}.",
"LEADERBOARD": "Leaderboard",
"LEARN_TO_EXPORT": "{STRONG_NO}, learn how to export my secret phrase.",
Expand Down
4 changes: 4 additions & 0 deletions config/localization_notifications/en/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@
"TITLE": "Season {SEASON_NUMBER} launch incentives program has begun!",
"BODY": "In season {PREV_SEASON_NUMBER}, median rewards earned were {DYDX_AMOUNT} DYDX (~{USDC_AMOUNT} USDC)!"
},
"REWARDS_DISTRIBUTED": {
"TITLE": "Season {SEASON_NUMBER} launch rewards have been distributed!",
"BODY": "Season {SEASON_NUMBER} rewards +{DYDX_AMOUNT} DYDX"
},
"OFFSETTING": {
"TITLE": "Position Offsetting",
"BODY": "Your {SIDE} position on {MARKET} was used to offset a deleveraged position."
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.111",
"version": "1.1.112",
"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 @@ -1080,6 +1080,7 @@ export const APP_STRING_KEYS = {
LAUNCH_INCENTIVES_DESCRIPTION: 'APP.PORTFOLIO.LAUNCH_INCENTIVES_DESCRIPTION',
LAUNCH_INCENTIVES_SEASON_BEGINS_SOON: 'APP.PORTFOLIO.LAUNCH_INCENTIVES_SEASON_BEGINS_SOON',
LAUNCH_INCENTIVES_SEASON_NUM: 'APP.PORTFOLIO.LAUNCH_INCENTIVES_SEASON_NUM',
LAUNCH_INCENTIVES_SEASON_REWARDS: 'APP.PORTFOLIO.LAUNCH_INCENTIVES_SEASON_REWARDS',
LAUNCH_INCENTIVES_SEASON_SUMMARY: 'APP.PORTFOLIO.LAUNCH_INCENTIVES_SEASON_SUMMARY',
LAUNCH_INCENTIVES_TITLE: 'APP.PORTFOLIO.LAUNCH_INCENTIVES_TITLE',
LEADERBOARD: 'APP.PORTFOLIO.LEADERBOARD',
Expand Down
2 changes: 2 additions & 0 deletions scripts/generated/notifications.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ export const NOTIFICATIONS_STRING_KEYS = {
POSITION_CLOSED_TITLE: 'NOTIFICATIONS.POSITION_CLOSED.TITLE',
RELEASE_REWARDS_AND_FULL_TRADING_BODY: 'NOTIFICATIONS.RELEASE_REWARDS_AND_FULL_TRADING.BODY',
RELEASE_REWARDS_AND_FULL_TRADING_TITLE: 'NOTIFICATIONS.RELEASE_REWARDS_AND_FULL_TRADING.TITLE',
REWARDS_DISTRIBUTED_BODY: 'NOTIFICATIONS.REWARDS_DISTRIBUTED.BODY',
REWARDS_DISTRIBUTED_TITLE: 'NOTIFICATIONS.REWARDS_DISTRIBUTED.TITLE',
SLOW_WITHDRAWAL_PENDING_BODY: 'NOTIFICATIONS.SLOW_WITHDRAWAL_PENDING.BODY',
SLOW_WITHDRAWAL_PENDING_TITLE: 'NOTIFICATIONS.SLOW_WITHDRAWAL_PENDING.TITLE',
SLOW_WITHDRAWAL_SUCCESS_BODY: 'NOTIFICATIONS.SLOW_WITHDRAWAL_SUCCESS.BODY',
Expand Down

0 comments on commit ac4d790

Please sign in to comment.