diff --git a/config/localization/en/app.json b/config/localization/en/app.json index b90894ec9..19489f6c9 100644 --- a/config/localization/en/app.json +++ b/config/localization/en/app.json @@ -2050,10 +2050,26 @@ "INVALID_GOOD_TIL": "Invalid Good Til" }, "TRIGGERS_FORM": { - "PRICE_MUST_POSITIVE": "All input prices must be positive. Please adjust your input prices." + "PRICE_MUST_POSITIVE": "All input prices must be positive. Please adjust your input prices.", + "STOP_LOSS_LIMIT_MUST_ABOVE_TRIGGER_PRICE": "Your stop loss limit price must be above your trigger price for this order to fill when it triggers. Please adjust your limit price.", + "STOP_LOSS_LIMIT_MUST_BELOW_TRIGGER_PRICE": "Your stop loss limit price must be below your trigger price for this order to fill when it triggers. Please adjust your limit price.", + "STOP_LOSS_TRIGGER_MUST_ABOVE_INDEX_PRICE": "Your stop loss trigger price must be above the current oracle price: {INDEX_PRICE}.", + "STOP_LOSS_TRIGGER_MUST_BELOW_INDEX_PRICE": "Your stop loss trigger price must be below the current oracle price: {INDEX_PRICE}.", + "TAKE_PROFIT_LIMIT_MUST_ABOVE_TRIGGER_PRICE": "Your take profit limit price must be above your trigger price for this order to fill when it triggers. Please adjust your limit price.", + "TAKE_PROFIT_LIMIT_MUST_BELOW_TRIGGER_PRICE": "Your take profit limit price must be below your trigger price for this order to fill when it triggers. Please adjust your limit price.", + "TAKE_PROFIT_TRIGGER_MUST_ABOVE_INDEX_PRICE": "Your take profit trigger price must be above the current oracle price: {INDEX_PRICE}.", + "TAKE_PROFIT_TRIGGER_MUST_BELOW_INDEX_PRICE": "Your take profit trigger price must be below the current oracle price: {INDEX_PRICE}." }, "TRIGGERS_FORM_TITLE": { - "PRICE_MUST_POSITIVE": "Invalid price input" + "PRICE_MUST_POSITIVE": "Invalid price input", + "STOP_LOSS_LIMIT_MUST_ABOVE_TRIGGER_PRICE": "Invalid stop loss limit price", + "STOP_LOSS_LIMIT_MUST_BELOW_TRIGGER_PRICE": "Invalid stop loss limit price", + "STOP_LOSS_TRIGGER_MUST_ABOVE_INDEX_PRICE": "Invalid stop loss trigger price", + "STOP_LOSS_TRIGGER_MUST_BELOW_INDEX_PRICE": "Invalid stop loss trigger price", + "TAKE_PROFIT_LIMIT_MUST_ABOVE_TRIGGER_PRICE": "Invalid take profit limit price", + "TAKE_PROFIT_LIMIT_MUST_BELOW_TRIGGER_PRICE": "Invalid take profit limit price", + "TAKE_PROFIT_TRIGGER_MUST_ABOVE_INDEX_PRICE": "Invalid take profit trigger price", + "TAKE_PROFIT_TRIGGER_MUST_BELOW_INDEX_PRICE": "Invalid take profit trigger price" }, "API_STATUS": { "INDEXER_ALERT": "Indexer Alert", diff --git a/package-lock.json b/package-lock.json index 336633146..9b38a5fbc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@dydxprotocol/v4-localization", - "version": "1.1.59", + "version": "1.1.60", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@dydxprotocol/v4-localization", - "version": "1.1.59", + "version": "1.1.60", "license": "AGPL-3.0", "devDependencies": { "@types/node": "^20.1.7" diff --git a/package.json b/package.json index bbf701495..81575d285 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@dydxprotocol/v4-localization", - "version": "1.1.59", + "version": "1.1.60", "description": "v4 localization", "main": "index.ts", "scripts": { diff --git a/scripts/generated/app.ts b/scripts/generated/app.ts index 3b8503db6..4c58c0da7 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 = { @@ -1689,6 +1689,14 @@ export const ERRORS_STRING_KEYS = { // TRIGGERS_FORM PRICE_MUST_POSITIVE: 'ERRORS.TRIGGERS_FORM.PRICE_MUST_POSITIVE', + STOP_LOSS_LIMIT_MUST_ABOVE_TRIGGER_PRICE: 'ERRORS.TRIGGERS_FORM.STOP_LOSS_LIMIT_MUST_ABOVE_TRIGGER_PRICE', + STOP_LOSS_LIMIT_MUST_BELOW_TRIGGER_PRICE: 'ERRORS.TRIGGERS_FORM.STOP_LOSS_LIMIT_MUST_BELOW_TRIGGER_PRICE', + STOP_LOSS_TRIGGER_MUST_ABOVE_INDEX_PRICE: 'ERRORS.TRIGGERS_FORM.STOP_LOSS_TRIGGER_MUST_ABOVE_INDEX_PRICE', + STOP_LOSS_TRIGGER_MUST_BELOW_INDEX_PRICE: 'ERRORS.TRIGGERS_FORM.STOP_LOSS_TRIGGER_MUST_BELOW_INDEX_PRICE', + TAKE_PROFIT_LIMIT_MUST_ABOVE_TRIGGER_PRICE: 'ERRORS.TRIGGERS_FORM.TAKE_PROFIT_LIMIT_MUST_ABOVE_TRIGGER_PRICE', + TAKE_PROFIT_LIMIT_MUST_BELOW_TRIGGER_PRICE: 'ERRORS.TRIGGERS_FORM.TAKE_PROFIT_LIMIT_MUST_BELOW_TRIGGER_PRICE', + TAKE_PROFIT_TRIGGER_MUST_ABOVE_INDEX_PRICE: 'ERRORS.TRIGGERS_FORM.TAKE_PROFIT_TRIGGER_MUST_ABOVE_INDEX_PRICE', + TAKE_PROFIT_TRIGGER_MUST_BELOW_INDEX_PRICE: 'ERRORS.TRIGGERS_FORM.TAKE_PROFIT_TRIGGER_MUST_BELOW_INDEX_PRICE', // TRIGGERS_FORM_TITLE