From bb1f4d306e15c7849557d7aa1d978ad78992b797 Mon Sep 17 00:00:00 2001 From: mulan xia Date: Fri, 2 Feb 2024 11:51:37 -0500 Subject: [PATCH 1/4] add strings --- config/localization/de/app.json | 1 - config/localization/en/app.json | 15 +++++++++++++-- config/localization/es/app.json | 1 - config/localization/fr/app.json | 1 - config/localization/ko/app.json | 1 - config/localization/pt/app.json | 1 - config/localization/ru/app.json | 1 - config/localization/tr/app.json | 1 - config/localization/zh-CN/app.json | 1 - scripts/generated/app.ts | 13 +++++++++++++ 10 files changed, 26 insertions(+), 10 deletions(-) diff --git a/config/localization/de/app.json b/config/localization/de/app.json index 9cb32ffe4..91cf7d997 100644 --- a/config/localization/de/app.json +++ b/config/localization/de/app.json @@ -193,7 +193,6 @@ "PERPETUALS": "Perpetuals", "PNL": "G&V", "POSITION": "Position", - "POWERED_BY": "Powered By", "PRICE_CHART_SHORT": "Preis", "PRICE": "Preis", "PRIVACY": "Datenschutz", diff --git a/config/localization/en/app.json b/config/localization/en/app.json index 16b2dce4f..8311f6d62 100644 --- a/config/localization/en/app.json +++ b/config/localization/en/app.json @@ -194,7 +194,7 @@ "PERPETUALS": "Perpetuals", "PNL": "P&L", "POSITION": "Position", - "POWERED_BY": "Powered By", + "POWERED_BY": "POWERED BY", "PRICE_CHART_SHORT": "Price", "PRICE": "Price", "PRIVACY": "Privacy", @@ -1349,7 +1349,6 @@ "LAUNCH_INCENTIVES_DESCRIPTION":"Each season, you can earn rewards for trading on dYdX Chain. Trade to earn your spot on the leaderboard.", "LEADERBOARD": "Leaderboard", "POINTS":"{POINTS} points", - "POWERED_BY":"POWERED BY", "SEASON_ID":"Season {SEASON_ID}", "TRADING_REWARD": "Trading Reward", "REWARD_HISTORY_DESCRIPTION": "Rewards are distributed after every block.", @@ -1543,6 +1542,18 @@ "RED_IS_UP": "Red is up", "SELECT_A_THEME": "Select Color Theme" }, + "GLOBAL_COMMANDS": { + "SET_CLASSIC_DARK_THEME": "Set Classic Dark Theme", + "SET_SYSTEM_THEME": "Set System Theme", + "SET_DARK_THEME": "Set Dark Theme", + "SET_LIGHT_THEME": "Set Light Theme", + "SET_GREEN_IS_UP": "Set Green to be Up", + "SET_RED_IS_UP": "Set Red to be Up", + "SET_DEFAULT_LAYOUT": "Set Default Layout", + "SET_REVERSE_LAYOUT": "Set Reverse Layout", + "SET_ALTERNATIVE_LAYOUT": "Set Alternative Layout", + "NAVIGATE_TO_MARKET": "Nagivate to Market" + }, "NEW_MARKET_WIDGET": { "ADD_A_MARKET": "Add a market", "ADD_DETAILS_TO_LAUNCH_MARKET": "Add details in order to propose a new market", diff --git a/config/localization/es/app.json b/config/localization/es/app.json index b0f8352a9..a10905b8a 100644 --- a/config/localization/es/app.json +++ b/config/localization/es/app.json @@ -191,7 +191,6 @@ "PERPETUALS": "Perpetuos", "PNL": "P&L", "POSITION": "Posición", - "POWERED_BY": "Desarrollado por", "PRICE_CHART_SHORT": "Precio", "PRICE": "Precio", "PRIVACY": "Privacidad", diff --git a/config/localization/fr/app.json b/config/localization/fr/app.json index 52994cae2..07532bff8 100644 --- a/config/localization/fr/app.json +++ b/config/localization/fr/app.json @@ -191,7 +191,6 @@ "PERPETUALS": "Perpétuels", "PNL": "P&L", "POSITION": "Position", - "POWERED_BY": "Alimenté par", "PRICE_CHART_SHORT": "Prix", "PRICE": "Prix", "PRIVACY": "Confidentialité", diff --git a/config/localization/ko/app.json b/config/localization/ko/app.json index b5801b3d1..db34313b5 100644 --- a/config/localization/ko/app.json +++ b/config/localization/ko/app.json @@ -193,7 +193,6 @@ "PERPETUALS": "무기한", "PNL": "손익", "POSITION": "포지션", - "POWERED_BY": "Powered by", "PRICE_CHART_SHORT": "가격", "PRICE": "가격", "PRIVACY": "개인정보 보호", diff --git a/config/localization/pt/app.json b/config/localization/pt/app.json index 8f7199b5e..e1d495da2 100644 --- a/config/localization/pt/app.json +++ b/config/localization/pt/app.json @@ -191,7 +191,6 @@ "PERPETUALS": "Perpétuos", "PNL": "Lucros e perdas", "POSITION": "Posição", - "POWERED_BY": "Criado por", "PRICE_CHART_SHORT": "Preço", "PRICE": "Preço", "PRIVACY": "Privacidade", diff --git a/config/localization/ru/app.json b/config/localization/ru/app.json index 4a8eea6ab..b311d911b 100644 --- a/config/localization/ru/app.json +++ b/config/localization/ru/app.json @@ -193,7 +193,6 @@ "PERPETUALS": "Бессрочность", "PNL": "P&L", "POSITION": "Позиция", - "POWERED_BY": "Работает на основе", "PRICE_CHART_SHORT": "Цена", "PRICE": "Цена", "PRIVACY": "Конфиденциальность", diff --git a/config/localization/tr/app.json b/config/localization/tr/app.json index 64d181001..7955f7ed9 100644 --- a/config/localization/tr/app.json +++ b/config/localization/tr/app.json @@ -191,7 +191,6 @@ "PERPETUALS": "Sürekli Vadeli Varlıklar", "PNL": "Kar&Zarar", "POSITION": "Pozisyon", - "POWERED_BY": "Destekleyen", "PRICE_CHART_SHORT": "Fiyat", "PRICE": "Fiyat", "PRIVACY": "Gizlilik", diff --git a/config/localization/zh-CN/app.json b/config/localization/zh-CN/app.json index cfaee9ed7..a38d51bb7 100644 --- a/config/localization/zh-CN/app.json +++ b/config/localization/zh-CN/app.json @@ -193,7 +193,6 @@ "PERPETUALS": "永续合约", "PNL": "盈亏", "POSITION": "当前持仓", - "POWERED_BY": "支持方", "PRICE_CHART_SHORT": "价格", "PRICE": "价格", "PRIVACY": "隐私", diff --git a/scripts/generated/app.ts b/scripts/generated/app.ts index 665c281d2..61cd13656 100644 --- a/scripts/generated/app.ts +++ b/scripts/generated/app.ts @@ -492,6 +492,19 @@ export const APP_STRING_KEYS = { YES: 'APP.GENERAL.YES', YOU: 'APP.GENERAL.YOU', + // GLOBAL_COMMANDS + + NAVIGATE_TO_MARKET: 'APP.GLOBAL_COMMANDS.NAVIGATE_TO_MARKET', + SET_ALTERNATIVE_LAYOUT: 'APP.GLOBAL_COMMANDS.SET_ALTERNATIVE_LAYOUT', + SET_CLASSIC_DARK_THEME: 'APP.GLOBAL_COMMANDS.SET_CLASSIC_DARK_THEME', + SET_DARK_THEME: 'APP.GLOBAL_COMMANDS.SET_DARK_THEME', + SET_DEFAULT_LAYOUT: 'APP.GLOBAL_COMMANDS.SET_DEFAULT_LAYOUT', + SET_GREEN_IS_UP: 'APP.GLOBAL_COMMANDS.SET_GREEN_IS_UP', + SET_LIGHT_THEME: 'APP.GLOBAL_COMMANDS.SET_LIGHT_THEME', + SET_RED_IS_UP: 'APP.GLOBAL_COMMANDS.SET_RED_IS_UP', + SET_REVERSE_LAYOUT: 'APP.GLOBAL_COMMANDS.SET_REVERSE_LAYOUT', + SET_SYSTEM_THEME: 'APP.GLOBAL_COMMANDS.SET_SYSTEM_THEME', + // HEADER API_DOCUMENTATION: 'APP.HEADER.API_DOCUMENTATION', From 6d0a6f02f6a922240eb669c1aee618d0fdba2a2c Mon Sep 17 00:00:00 2001 From: mulan xia Date: Fri, 2 Feb 2024 15:53:12 -0500 Subject: [PATCH 2/4] fix with new string --- config/localization/de/app.json | 1 + config/localization/en/app.json | 3 ++- config/localization/es/app.json | 1 + config/localization/fr/app.json | 1 + config/localization/ko/app.json | 1 + config/localization/pt/app.json | 1 + config/localization/ru/app.json | 1 + config/localization/tr/app.json | 1 + config/localization/zh-CN/app.json | 1 + scripts/generated/app.ts | 1 + 10 files changed, 11 insertions(+), 1 deletion(-) diff --git a/config/localization/de/app.json b/config/localization/de/app.json index 91cf7d997..9cb32ffe4 100644 --- a/config/localization/de/app.json +++ b/config/localization/de/app.json @@ -193,6 +193,7 @@ "PERPETUALS": "Perpetuals", "PNL": "G&V", "POSITION": "Position", + "POWERED_BY": "Powered By", "PRICE_CHART_SHORT": "Preis", "PRICE": "Preis", "PRIVACY": "Datenschutz", diff --git a/config/localization/en/app.json b/config/localization/en/app.json index 8311f6d62..ea4d100ab 100644 --- a/config/localization/en/app.json +++ b/config/localization/en/app.json @@ -194,7 +194,8 @@ "PERPETUALS": "Perpetuals", "PNL": "P&L", "POSITION": "Position", - "POWERED_BY": "POWERED BY", + "POWERED_BY": "Powered By", + "POWERED_BY_ALL_CAPS": "POWERED BY", "PRICE_CHART_SHORT": "Price", "PRICE": "Price", "PRIVACY": "Privacy", diff --git a/config/localization/es/app.json b/config/localization/es/app.json index a10905b8a..b0f8352a9 100644 --- a/config/localization/es/app.json +++ b/config/localization/es/app.json @@ -191,6 +191,7 @@ "PERPETUALS": "Perpetuos", "PNL": "P&L", "POSITION": "Posición", + "POWERED_BY": "Desarrollado por", "PRICE_CHART_SHORT": "Precio", "PRICE": "Precio", "PRIVACY": "Privacidad", diff --git a/config/localization/fr/app.json b/config/localization/fr/app.json index 07532bff8..52994cae2 100644 --- a/config/localization/fr/app.json +++ b/config/localization/fr/app.json @@ -191,6 +191,7 @@ "PERPETUALS": "Perpétuels", "PNL": "P&L", "POSITION": "Position", + "POWERED_BY": "Alimenté par", "PRICE_CHART_SHORT": "Prix", "PRICE": "Prix", "PRIVACY": "Confidentialité", diff --git a/config/localization/ko/app.json b/config/localization/ko/app.json index db34313b5..b5801b3d1 100644 --- a/config/localization/ko/app.json +++ b/config/localization/ko/app.json @@ -193,6 +193,7 @@ "PERPETUALS": "무기한", "PNL": "손익", "POSITION": "포지션", + "POWERED_BY": "Powered by", "PRICE_CHART_SHORT": "가격", "PRICE": "가격", "PRIVACY": "개인정보 보호", diff --git a/config/localization/pt/app.json b/config/localization/pt/app.json index e1d495da2..8f7199b5e 100644 --- a/config/localization/pt/app.json +++ b/config/localization/pt/app.json @@ -191,6 +191,7 @@ "PERPETUALS": "Perpétuos", "PNL": "Lucros e perdas", "POSITION": "Posição", + "POWERED_BY": "Criado por", "PRICE_CHART_SHORT": "Preço", "PRICE": "Preço", "PRIVACY": "Privacidade", diff --git a/config/localization/ru/app.json b/config/localization/ru/app.json index b311d911b..4a8eea6ab 100644 --- a/config/localization/ru/app.json +++ b/config/localization/ru/app.json @@ -193,6 +193,7 @@ "PERPETUALS": "Бессрочность", "PNL": "P&L", "POSITION": "Позиция", + "POWERED_BY": "Работает на основе", "PRICE_CHART_SHORT": "Цена", "PRICE": "Цена", "PRIVACY": "Конфиденциальность", diff --git a/config/localization/tr/app.json b/config/localization/tr/app.json index 7955f7ed9..64d181001 100644 --- a/config/localization/tr/app.json +++ b/config/localization/tr/app.json @@ -191,6 +191,7 @@ "PERPETUALS": "Sürekli Vadeli Varlıklar", "PNL": "Kar&Zarar", "POSITION": "Pozisyon", + "POWERED_BY": "Destekleyen", "PRICE_CHART_SHORT": "Fiyat", "PRICE": "Fiyat", "PRIVACY": "Gizlilik", diff --git a/config/localization/zh-CN/app.json b/config/localization/zh-CN/app.json index a38d51bb7..cfaee9ed7 100644 --- a/config/localization/zh-CN/app.json +++ b/config/localization/zh-CN/app.json @@ -193,6 +193,7 @@ "PERPETUALS": "永续合约", "PNL": "盈亏", "POSITION": "当前持仓", + "POWERED_BY": "支持方", "PRICE_CHART_SHORT": "价格", "PRICE": "价格", "PRIVACY": "隐私", diff --git a/scripts/generated/app.ts b/scripts/generated/app.ts index 61cd13656..15903f79c 100644 --- a/scripts/generated/app.ts +++ b/scripts/generated/app.ts @@ -362,6 +362,7 @@ export const APP_STRING_KEYS = { PNL: 'APP.GENERAL.PNL', POSITION: 'APP.GENERAL.POSITION', POWERED_BY: 'APP.GENERAL.POWERED_BY', + POWERED_BY_ALL_CAPS: 'APP.GENERAL.POWERED_BY_ALL_CAPS', PRICE: 'APP.GENERAL.PRICE', PRICE_CHART_SHORT: 'APP.GENERAL.PRICE_CHART_SHORT', PRIVACY: 'APP.GENERAL.PRIVACY', From 8085ced7963e10d46c9f7b14b786ca5dace29ad4 Mon Sep 17 00:00:00 2001 From: mulan xia Date: Fri, 2 Feb 2024 16:05:02 -0500 Subject: [PATCH 3/4] bump version --- 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 d1b6c3a7c..d67e36e83 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@dydxprotocol/v4-localization", - "version": "1.1.21", + "version": "1.1.22", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@dydxprotocol/v4-localization", - "version": "1.1.21", + "version": "1.1.22", "license": "AGPL-3.0", "devDependencies": { "@types/node": "^20.1.7" diff --git a/package.json b/package.json index 61f0ebe58..9f908f703 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@dydxprotocol/v4-localization", - "version": "1.1.21", + "version": "1.1.22", "description": "v4 localization", "main": "index.ts", "scripts": { From 7dfde3c4ca1d6c1ac4c230c390c054af88471109 Mon Sep 17 00:00:00 2001 From: mulan xia Date: Fri, 2 Feb 2024 16:16:24 -0500 Subject: [PATCH 4/4] add back key because it looks like it's used by v4-ios? --- config/localization/en/app.json | 1 + 1 file changed, 1 insertion(+) diff --git a/config/localization/en/app.json b/config/localization/en/app.json index ea4d100ab..543d766b7 100644 --- a/config/localization/en/app.json +++ b/config/localization/en/app.json @@ -1350,6 +1350,7 @@ "LAUNCH_INCENTIVES_DESCRIPTION":"Each season, you can earn rewards for trading on dYdX Chain. Trade to earn your spot on the leaderboard.", "LEADERBOARD": "Leaderboard", "POINTS":"{POINTS} points", + "POWERED_BY":"POWERED BY", "SEASON_ID":"Season {SEASON_ID}", "TRADING_REWARD": "Trading Reward", "REWARD_HISTORY_DESCRIPTION": "Rewards are distributed after every block.",