Skip to content

Commit

Permalink
TRCL-3542 Add global command strings for translation (#256)
Browse files Browse the repository at this point in the history
* add strings

* fix with new string

* bump version

* add back key because it looks like it's used by v4-ios?
  • Loading branch information
moo-onthelawn authored Feb 2, 2024
1 parent fe532f7 commit b4064d6
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 3 deletions.
13 changes: 13 additions & 0 deletions config/localization/en/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@
"PNL": "P&L",
"POSITION": "Position",
"POWERED_BY": "Powered By",
"POWERED_BY_ALL_CAPS": "POWERED BY",
"PRICE_CHART_SHORT": "Price",
"PRICE": "Price",
"PRIVACY": "Privacy",
Expand Down Expand Up @@ -1543,6 +1544,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",
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.21",
"version": "1.1.22",
"description": "v4 localization",
"main": "index.ts",
"scripts": {
Expand Down
14 changes: 14 additions & 0 deletions scripts/generated/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -492,6 +493,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',
Expand Down

0 comments on commit b4064d6

Please sign in to comment.