Skip to content

Commit

Permalink
localization for winding down markets (#502)
Browse files Browse the repository at this point in the history
* add localization text

* 1.1.111

* one more translation to sneak in

* update add languagE
  • Loading branch information
moo-onthelawn authored Jun 5, 2024
1 parent d5f53a9 commit 6857169
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 4 deletions.
1 change: 1 addition & 0 deletions config/localization/en/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
"ACTION": "Action",
"ACTIONS": "Actions",
"ACTIVE": "Active",
"ADD": "Add →",
"ADDING": "Adding",
"ADDRESS": "Address",
"ADVANCED": "Advanced",
Expand Down
8 changes: 8 additions & 0 deletions config/localization_notifications/en/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,14 @@
"TAKE_PROFIT_TRIGGER_REMOVED": {
"TITLE": "Take Profit",
"BODY": "Your take profit trigger at {OLD_VALUE} has been removed."
},
"TWO_MARKET_WIND_DOWN": {
"TITLE": "{MARKET_1} and {MARKET_2} markets wound down",
"BODY": "At block {BLOCK_NUMBER} {DATE}, the {MARKET_1} and {MARKET_2} markets went through final settlement. Existing positions have been closed and open orders have now been canceled. You can find more information regarding the final settlement {HERE_LINK}."
},
"TWO_MARKET_WIND_DOWN_PROPOSAL": {
"TITLE": "Live proposal to wind down {MARKET_1} and {MARKET_2} markets",
"BODY": "There is currently a live proposal to wind down the {MARKET_1} and {MARKET_2} markets. If passed, the {MARKET_1} and {MARKET_2} markets will enter final settlement at block {BLOCK_NUMBER} {DATE}. Existing positions will be closed and open orders will be canceled. You can find more information regarding the proposal {HERE_LINK}."
}
}
}
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.110",
"version": "1.1.111",
"description": "v4 localization",
"main": "index.ts",
"scripts": {
Expand Down
3 changes: 2 additions & 1 deletion 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 @@ -267,6 +267,7 @@ export const APP_STRING_KEYS = {
ACTION: 'APP.GENERAL.ACTION',
ACTIONS: 'APP.GENERAL.ACTIONS',
ACTIVE: 'APP.GENERAL.ACTIVE',
ADD: 'APP.GENERAL.ADD',
ADDING: 'APP.GENERAL.ADDING',
ADDRESS: 'APP.GENERAL.ADDRESS',
ADD_NEW_MARKET: 'APP.GENERAL.ADD_NEW_MARKET',
Expand Down
4 changes: 4 additions & 0 deletions scripts/generated/notifications.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,9 @@ export const NOTIFICATIONS_STRING_KEYS = {
TAKE_PROFIT_TRIGGER_UPDATING_TITLE: 'NOTIFICATIONS.TAKE_PROFIT_TRIGGER_UPDATING.TITLE',
TAKE_PROFIT_TRIGGER_UPDATING_ERROR_BODY: 'NOTIFICATIONS.TAKE_PROFIT_TRIGGER_UPDATING_ERROR.BODY',
TAKE_PROFIT_TRIGGER_UPDATING_ERROR_TITLE: 'NOTIFICATIONS.TAKE_PROFIT_TRIGGER_UPDATING_ERROR.TITLE',
TWO_MARKET_WIND_DOWN_BODY: 'NOTIFICATIONS.TWO_MARKET_WIND_DOWN.BODY',
TWO_MARKET_WIND_DOWN_TITLE: 'NOTIFICATIONS.TWO_MARKET_WIND_DOWN.TITLE',
TWO_MARKET_WIND_DOWN_PROPOSAL_BODY: 'NOTIFICATIONS.TWO_MARKET_WIND_DOWN_PROPOSAL.BODY',
TWO_MARKET_WIND_DOWN_PROPOSAL_TITLE: 'NOTIFICATIONS.TWO_MARKET_WIND_DOWN_PROPOSAL.TITLE',
};

0 comments on commit 6857169

Please sign in to comment.