@dydxprotocol/v4-localization 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/publish.yml +38 -0
- package/.gitleaks.toml +17 -0
- package/.gitleaksignore +0 -0
- package/.nvmrc +1 -0
- package/config/countries.json +1117 -0
- package/config/localization/app.ts +23 -0
- package/config/localization/de/app.json +1316 -0
- package/config/localization/de/tooltips.json +228 -0
- package/config/localization/en/app.json +1316 -0
- package/config/localization/en/tooltips.json +228 -0
- package/config/localization/es/app.json +1311 -0
- package/config/localization/es/tooltips.json +228 -0
- package/config/localization/fr/app.json +1311 -0
- package/config/localization/fr/tooltips.json +228 -0
- package/config/localization/ja/app.json +1311 -0
- package/config/localization/ja/tooltips.json +228 -0
- package/config/localization/ko/app.json +1316 -0
- package/config/localization/ko/tooltips.json +228 -0
- package/config/localization/languages.json +43 -0
- package/config/localization/pt/app.json +1311 -0
- package/config/localization/pt/tooltips.json +228 -0
- package/config/localization/ru/app.json +1316 -0
- package/config/localization/ru/tooltips.json +228 -0
- package/config/localization/tooltip.ts +23 -0
- package/config/localization/tr/app.json +1311 -0
- package/config/localization/tr/tooltips.json +228 -0
- package/config/localization/zh-CN/app.json +1124 -0
- package/config/localization/zh-CN/tooltips.json +228 -0
- package/config/localization_notifications/de/app.json +40 -0
- package/config/localization_notifications/en/app.json +40 -0
- package/config/localization_notifications/es/app.json +40 -0
- package/config/localization_notifications/fr/app.json +40 -0
- package/config/localization_notifications/index.ts +23 -0
- package/config/localization_notifications/ja/app.json +40 -0
- package/config/localization_notifications/ko/app.json +40 -0
- package/config/localization_notifications/pt/app.json +40 -0
- package/config/localization_notifications/ru/app.json +40 -0
- package/config/localization_notifications/tr/app.json +40 -0
- package/config/localization_notifications/zh-CN/app.json +40 -0
- package/config/localizations_native/de/app.json +451 -0
- package/config/localizations_native/en/app.json +451 -0
- package/config/localizations_native/es/app.json +451 -0
- package/config/localizations_native/fr/app.json +451 -0
- package/config/localizations_native/index.ts +23 -0
- package/config/localizations_native/ja/app.json +451 -0
- package/config/localizations_native/ko/app.json +451 -0
- package/config/localizations_native/pt/app.json +451 -0
- package/config/localizations_native/ru/app.json +451 -0
- package/config/localizations_native/tr/app.json +451 -0
- package/config/localizations_native/zh-CN/app.json +398 -0
- package/config/markets.json +700 -0
- package/config/prod/walletsV2.json +646 -0
- package/config/staging/walletsV2.json +646 -0
- package/config/version_ios.json +14 -0
- package/index.ts +25 -0
- package/package.json +22 -0
- package/readme.md +63 -0
- package/scripts/codegen_localization_app +0 -0
- package/scripts/codegen_localization_app.swift +59 -0
- package/scripts/codegen_localization_tooltips.swift +46 -0
- package/scripts/generated/app.ts +1356 -0
- package/scripts/generated/tooltips.ts +134 -0
- package/scripts/merge_jsons.sh +48 -0
- package/scripts/publish-if-not-exists.sh +21 -0
- package/v4/staging/markets.json +704 -0
- package/wallet_connect/dapps.json +4836 -0
- package/wallet_connect/index.ts +7 -0
- package/wallet_connect/wallets.json +4033 -0
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
// !! GENERATED FILE - DO NOT EDIT
|
|
2
|
+
|
|
3
|
+
// Generated from ../config/localization/en/tooltips.json using ../config/localization/en/tooltips.json
|
|
4
|
+
|
|
5
|
+
export const TOOLTIP_STRING_KEYS = {
|
|
6
|
+
|
|
7
|
+
// DEPOSIT
|
|
8
|
+
|
|
9
|
+
AVAILABLE_GASLESS_DEPOSITS_BODY: 'TOOLTIPS.DEPOSIT.AVAILABLE_GASLESS_DEPOSITS.BODY',
|
|
10
|
+
AVAILABLE_GASLESS_DEPOSITS_TITLE: 'TOOLTIPS.DEPOSIT.AVAILABLE_GASLESS_DEPOSITS.TITLE',
|
|
11
|
+
DISABLED_GASLESS_DEPOSITS_BODY: 'TOOLTIPS.DEPOSIT.DISABLED_GASLESS_DEPOSITS.BODY',
|
|
12
|
+
DISABLED_GASLESS_DEPOSITS_TITLE: 'TOOLTIPS.DEPOSIT.DISABLED_GASLESS_DEPOSITS.TITLE',
|
|
13
|
+
GASLESS_DEPOSITS_BODY: 'TOOLTIPS.DEPOSIT.GASLESS_DEPOSITS.BODY',
|
|
14
|
+
GASLESS_DEPOSITS_TITLE: 'TOOLTIPS.DEPOSIT.GASLESS_DEPOSITS.TITLE',
|
|
15
|
+
SWAP_BODY: 'TOOLTIPS.DEPOSIT.SWAP.BODY',
|
|
16
|
+
SWAP_TITLE: 'TOOLTIPS.DEPOSIT.SWAP.TITLE',
|
|
17
|
+
|
|
18
|
+
// EMAIL_NOTIFICATIONS
|
|
19
|
+
|
|
20
|
+
VERIFY_EMAIL_BODY: 'TOOLTIPS.EMAIL_NOTIFICATIONS.VERIFY_EMAIL.BODY',
|
|
21
|
+
VERIFY_EMAIL_TITLE: 'TOOLTIPS.EMAIL_NOTIFICATIONS.VERIFY_EMAIL.TITLE',
|
|
22
|
+
|
|
23
|
+
// GENERAL
|
|
24
|
+
|
|
25
|
+
LEGACY_SIGNING_BODY: 'TOOLTIPS.GENERAL.LEGACY_SIGNING.BODY',
|
|
26
|
+
LEGACY_SIGNING_TITLE: 'TOOLTIPS.GENERAL.LEGACY_SIGNING.TITLE',
|
|
27
|
+
REMEMBER_ME_BODY: 'TOOLTIPS.GENERAL.REMEMBER_ME.BODY',
|
|
28
|
+
REMEMBER_ME_TITLE: 'TOOLTIPS.GENERAL.REMEMBER_ME.TITLE',
|
|
29
|
+
|
|
30
|
+
// PORTFOLIO
|
|
31
|
+
|
|
32
|
+
HOLDING_HEDGIES_BODY: 'TOOLTIPS.PORTFOLIO.HOLDING_HEDGIES.BODY',
|
|
33
|
+
HOLDING_HEDGIES_TITLE: 'TOOLTIPS.PORTFOLIO.HOLDING_HEDGIES.TITLE',
|
|
34
|
+
|
|
35
|
+
// TRADE
|
|
36
|
+
|
|
37
|
+
ACCOUNT_LEVERAGE_BODY: 'TOOLTIPS.TRADE.ACCOUNT_LEVERAGE.BODY',
|
|
38
|
+
ACCOUNT_LEVERAGE_TITLE: 'TOOLTIPS.TRADE.ACCOUNT_LEVERAGE.TITLE',
|
|
39
|
+
BRACKET_ORDER_SL_BODY: 'TOOLTIPS.TRADE.BRACKET_ORDER_SL.BODY',
|
|
40
|
+
BRACKET_ORDER_SL_TITLE: 'TOOLTIPS.TRADE.BRACKET_ORDER_SL.TITLE',
|
|
41
|
+
BRACKET_ORDER_TP_BODY: 'TOOLTIPS.TRADE.BRACKET_ORDER_TP.BODY',
|
|
42
|
+
BRACKET_ORDER_TP_TITLE: 'TOOLTIPS.TRADE.BRACKET_ORDER_TP.TITLE',
|
|
43
|
+
BUYING_POWER_BODY: 'TOOLTIPS.TRADE.BUYING_POWER.BODY',
|
|
44
|
+
BUYING_POWER_TITLE: 'TOOLTIPS.TRADE.BUYING_POWER.TITLE',
|
|
45
|
+
DEFAULT_EXECUTION_BODY: 'TOOLTIPS.TRADE.DEFAULT_EXECUTION.BODY',
|
|
46
|
+
DEFAULT_EXECUTION_TITLE: 'TOOLTIPS.TRADE.DEFAULT_EXECUTION.TITLE',
|
|
47
|
+
EQUITY_BODY: 'TOOLTIPS.TRADE.EQUITY.BODY',
|
|
48
|
+
EQUITY_TITLE: 'TOOLTIPS.TRADE.EQUITY.TITLE',
|
|
49
|
+
EXPECTED_PRICE_BODY: 'TOOLTIPS.TRADE.EXPECTED_PRICE.BODY',
|
|
50
|
+
EXPECTED_PRICE_TITLE: 'TOOLTIPS.TRADE.EXPECTED_PRICE.TITLE',
|
|
51
|
+
FEE_BODY: 'TOOLTIPS.TRADE.FEE.BODY',
|
|
52
|
+
FEE_TITLE: 'TOOLTIPS.TRADE.FEE.TITLE',
|
|
53
|
+
FILL_OR_KILL_BODY: 'TOOLTIPS.TRADE.FILL_OR_KILL.BODY',
|
|
54
|
+
FILL_OR_KILL_TITLE: 'TOOLTIPS.TRADE.FILL_OR_KILL.TITLE',
|
|
55
|
+
FREE_COLLATERAL_BODY: 'TOOLTIPS.TRADE.FREE_COLLATERAL.BODY',
|
|
56
|
+
FREE_COLLATERAL_TITLE: 'TOOLTIPS.TRADE.FREE_COLLATERAL.TITLE',
|
|
57
|
+
GOOD_TIL_BODY: 'TOOLTIPS.TRADE.GOOD_TIL.BODY',
|
|
58
|
+
GOOD_TIL_TITLE: 'TOOLTIPS.TRADE.GOOD_TIL.TITLE',
|
|
59
|
+
IMMEDIATE_OR_CANCEL_BODY: 'TOOLTIPS.TRADE.IMMEDIATE_OR_CANCEL.BODY',
|
|
60
|
+
IMMEDIATE_OR_CANCEL_TITLE: 'TOOLTIPS.TRADE.IMMEDIATE_OR_CANCEL.TITLE',
|
|
61
|
+
INDEX_PRICE_BODY: 'TOOLTIPS.TRADE.INDEX_PRICE.BODY',
|
|
62
|
+
INDEX_PRICE_TITLE: 'TOOLTIPS.TRADE.INDEX_PRICE.TITLE',
|
|
63
|
+
INITIAL_MARGIN_FRACTION_BODY: 'TOOLTIPS.TRADE.INITIAL_MARGIN_FRACTION.BODY',
|
|
64
|
+
INITIAL_MARGIN_FRACTION_TITLE: 'TOOLTIPS.TRADE.INITIAL_MARGIN_FRACTION.TITLE',
|
|
65
|
+
INITIAL_STOP_BODY: 'TOOLTIPS.TRADE.INITIAL_STOP.BODY',
|
|
66
|
+
INITIAL_STOP_TITLE: 'TOOLTIPS.TRADE.INITIAL_STOP.TITLE',
|
|
67
|
+
LEVERAGE_BODY: 'TOOLTIPS.TRADE.LEVERAGE.BODY',
|
|
68
|
+
LEVERAGE_TITLE: 'TOOLTIPS.TRADE.LEVERAGE.TITLE',
|
|
69
|
+
LIMIT_PRICE_BODY: 'TOOLTIPS.TRADE.LIMIT_PRICE.BODY',
|
|
70
|
+
LIMIT_PRICE_TITLE: 'TOOLTIPS.TRADE.LIMIT_PRICE.TITLE',
|
|
71
|
+
LIMIT_PRICE_SLIPPAGE_BODY: 'TOOLTIPS.TRADE.LIMIT_PRICE_SLIPPAGE.BODY',
|
|
72
|
+
LIMIT_PRICE_SLIPPAGE_TITLE: 'TOOLTIPS.TRADE.LIMIT_PRICE_SLIPPAGE.TITLE',
|
|
73
|
+
LIQUIDATION_PRICE_BODY: 'TOOLTIPS.TRADE.LIQUIDATION_PRICE.BODY',
|
|
74
|
+
LIQUIDATION_PRICE_TITLE: 'TOOLTIPS.TRADE.LIQUIDATION_PRICE.TITLE',
|
|
75
|
+
LIQUIDATION_PRICE_GENERAL_BODY: 'TOOLTIPS.TRADE.LIQUIDATION_PRICE_GENERAL.BODY',
|
|
76
|
+
LIQUIDATION_PRICE_GENERAL_TITLE: 'TOOLTIPS.TRADE.LIQUIDATION_PRICE_GENERAL.TITLE',
|
|
77
|
+
LIQUIDITY_BODY: 'TOOLTIPS.TRADE.LIQUIDITY.BODY',
|
|
78
|
+
LIQUIDITY_TITLE: 'TOOLTIPS.TRADE.LIQUIDITY.TITLE',
|
|
79
|
+
MAINTENANCE_MARGIN_FRACTION_BODY: 'TOOLTIPS.TRADE.MAINTENANCE_MARGIN_FRACTION.BODY',
|
|
80
|
+
MAINTENANCE_MARGIN_FRACTION_TITLE: 'TOOLTIPS.TRADE.MAINTENANCE_MARGIN_FRACTION.TITLE',
|
|
81
|
+
MAKER_FEE_BODY: 'TOOLTIPS.TRADE.MAKER_FEE.BODY',
|
|
82
|
+
MAKER_FEE_TITLE: 'TOOLTIPS.TRADE.MAKER_FEE.TITLE',
|
|
83
|
+
MARGIN_USAGE_BODY: 'TOOLTIPS.TRADE.MARGIN_USAGE.BODY',
|
|
84
|
+
MARGIN_USAGE_TITLE: 'TOOLTIPS.TRADE.MARGIN_USAGE.TITLE',
|
|
85
|
+
MAXIMUM_LEVERAGE_BODY: 'TOOLTIPS.TRADE.MAXIMUM_LEVERAGE.BODY',
|
|
86
|
+
MAXIMUM_LEVERAGE_TITLE: 'TOOLTIPS.TRADE.MAXIMUM_LEVERAGE.TITLE',
|
|
87
|
+
MAX_WITHDRAW_BODY: 'TOOLTIPS.TRADE.MAX_WITHDRAW.BODY',
|
|
88
|
+
MAX_WITHDRAW_TITLE: 'TOOLTIPS.TRADE.MAX_WITHDRAW.TITLE',
|
|
89
|
+
NET_FUNDING_BODY: 'TOOLTIPS.TRADE.NET_FUNDING.BODY',
|
|
90
|
+
NET_FUNDING_TITLE: 'TOOLTIPS.TRADE.NET_FUNDING.TITLE',
|
|
91
|
+
OPEN_INTEREST_BODY: 'TOOLTIPS.TRADE.OPEN_INTEREST.BODY',
|
|
92
|
+
OPEN_INTEREST_TITLE: 'TOOLTIPS.TRADE.OPEN_INTEREST.TITLE',
|
|
93
|
+
ORACLE_PRICE_BODY: 'TOOLTIPS.TRADE.ORACLE_PRICE.BODY',
|
|
94
|
+
ORACLE_PRICE_TITLE: 'TOOLTIPS.TRADE.ORACLE_PRICE.TITLE',
|
|
95
|
+
ORDER_AMOUNT_BODY: 'TOOLTIPS.TRADE.ORDER_AMOUNT.BODY',
|
|
96
|
+
ORDER_AMOUNT_TITLE: 'TOOLTIPS.TRADE.ORDER_AMOUNT.TITLE',
|
|
97
|
+
POST_ONLY_BODY: 'TOOLTIPS.TRADE.POST_ONLY.BODY',
|
|
98
|
+
POST_ONLY_TITLE: 'TOOLTIPS.TRADE.POST_ONLY.TITLE',
|
|
99
|
+
PRICE_IMPACT_BODY: 'TOOLTIPS.TRADE.PRICE_IMPACT.BODY',
|
|
100
|
+
PRICE_IMPACT_TITLE: 'TOOLTIPS.TRADE.PRICE_IMPACT.TITLE',
|
|
101
|
+
REALIZED_PNL_BODY: 'TOOLTIPS.TRADE.REALIZED_PNL.BODY',
|
|
102
|
+
REALIZED_PNL_TITLE: 'TOOLTIPS.TRADE.REALIZED_PNL.TITLE',
|
|
103
|
+
REDUCE_ONLY_BODY: 'TOOLTIPS.TRADE.REDUCE_ONLY.BODY',
|
|
104
|
+
REDUCE_ONLY_TITLE: 'TOOLTIPS.TRADE.REDUCE_ONLY.TITLE',
|
|
105
|
+
STEP_SIZE_BODY: 'TOOLTIPS.TRADE.STEP_SIZE.BODY',
|
|
106
|
+
STEP_SIZE_TITLE: 'TOOLTIPS.TRADE.STEP_SIZE.TITLE',
|
|
107
|
+
TAKER_FEE_BODY: 'TOOLTIPS.TRADE.TAKER_FEE.BODY',
|
|
108
|
+
TAKER_FEE_TITLE: 'TOOLTIPS.TRADE.TAKER_FEE.TITLE',
|
|
109
|
+
TICK_SIZE_BODY: 'TOOLTIPS.TRADE.TICK_SIZE.BODY',
|
|
110
|
+
TICK_SIZE_TITLE: 'TOOLTIPS.TRADE.TICK_SIZE.TITLE',
|
|
111
|
+
TIME_IN_FORCE_BODY: 'TOOLTIPS.TRADE.TIME_IN_FORCE.BODY',
|
|
112
|
+
TIME_IN_FORCE_TITLE: 'TOOLTIPS.TRADE.TIME_IN_FORCE.TITLE',
|
|
113
|
+
TRAILING_PERCENT_BODY: 'TOOLTIPS.TRADE.TRAILING_PERCENT.BODY',
|
|
114
|
+
TRAILING_PERCENT_TITLE: 'TOOLTIPS.TRADE.TRAILING_PERCENT.TITLE',
|
|
115
|
+
TRIGGER_PRICE_BODY: 'TOOLTIPS.TRADE.TRIGGER_PRICE.BODY',
|
|
116
|
+
TRIGGER_PRICE_TITLE: 'TOOLTIPS.TRADE.TRIGGER_PRICE.TITLE',
|
|
117
|
+
UNREALIZED_PNL_BODY: 'TOOLTIPS.TRADE.UNREALIZED_PNL.BODY',
|
|
118
|
+
UNREALIZED_PNL_TITLE: 'TOOLTIPS.TRADE.UNREALIZED_PNL.TITLE',
|
|
119
|
+
|
|
120
|
+
// TRANSFER_AND_DEPOSIT
|
|
121
|
+
|
|
122
|
+
ALLOWANCE_AND_DEPOSIT_NETWORK_FEE_BODY: 'TOOLTIPS.TRANSFER_AND_DEPOSIT.ALLOWANCE_AND_DEPOSIT_NETWORK_FEE.BODY',
|
|
123
|
+
ALLOWANCE_AND_DEPOSIT_NETWORK_FEE_TITLE: 'TOOLTIPS.TRANSFER_AND_DEPOSIT.ALLOWANCE_AND_DEPOSIT_NETWORK_FEE.TITLE',
|
|
124
|
+
DEPOSIT_NETWORK_FEE_BODY: 'TOOLTIPS.TRANSFER_AND_DEPOSIT.DEPOSIT_NETWORK_FEE.BODY',
|
|
125
|
+
DEPOSIT_NETWORK_FEE_TITLE: 'TOOLTIPS.TRANSFER_AND_DEPOSIT.DEPOSIT_NETWORK_FEE.TITLE',
|
|
126
|
+
|
|
127
|
+
// WITHDRAW
|
|
128
|
+
|
|
129
|
+
FAST_WITHDRAW_FEE_BODY: 'TOOLTIPS.WITHDRAW.FAST_WITHDRAW_FEE.BODY',
|
|
130
|
+
FAST_WITHDRAW_FEE_TITLE: 'TOOLTIPS.WITHDRAW.FAST_WITHDRAW_FEE.TITLE',
|
|
131
|
+
WITHDRAW_TYPES_BODY: 'TOOLTIPS.WITHDRAW.WITHDRAW_TYPES.BODY',
|
|
132
|
+
WITHDRAW_TYPES_TITLE: 'TOOLTIPS.WITHDRAW.WITHDRAW_TYPES.TITLE',
|
|
133
|
+
};
|
|
134
|
+
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
#/bin/sh
|
|
2
|
+
|
|
3
|
+
# Merge all json files in a directory into one file
|
|
4
|
+
# Usage: merge_jsons.sh <directory> <output_file>
|
|
5
|
+
|
|
6
|
+
# Check if the number of arguments is correct
|
|
7
|
+
if [ $# -ne 2 ]; then
|
|
8
|
+
echo "Usage: merge_jsons.sh <directory> <output_file>"
|
|
9
|
+
exit 1
|
|
10
|
+
fi
|
|
11
|
+
|
|
12
|
+
# Check if the directory exists
|
|
13
|
+
if [ ! -d $1 ]; then
|
|
14
|
+
echo "Directory $1 does not exist"
|
|
15
|
+
exit 1
|
|
16
|
+
fi
|
|
17
|
+
|
|
18
|
+
# Check if the output file exists
|
|
19
|
+
if [ -f $2 ]; then
|
|
20
|
+
echo "Output file $2 already exists"
|
|
21
|
+
exit 1
|
|
22
|
+
fi
|
|
23
|
+
|
|
24
|
+
# Merge all json files in the directory
|
|
25
|
+
files=($1/*.json)
|
|
26
|
+
pos=$(( ${#files[*]} - 1 ))
|
|
27
|
+
last=${files[$pos]}
|
|
28
|
+
|
|
29
|
+
echo "{" > $2
|
|
30
|
+
# loop through the files
|
|
31
|
+
for file in "${files[@]}"; do
|
|
32
|
+
# get the file name without the extension
|
|
33
|
+
file_name=$(basename $file .json)
|
|
34
|
+
# convert file_name to uppercase
|
|
35
|
+
file_name=$(echo $file_name | tr '[:lower:]' '[:upper:]')
|
|
36
|
+
|
|
37
|
+
echo "\"$file_name\": " >> $2
|
|
38
|
+
cat $file >> $2
|
|
39
|
+
|
|
40
|
+
# if the file is the last file, don't add a comma
|
|
41
|
+
if [ "$file" != "$last" ]; then
|
|
42
|
+
echo "," >> $2
|
|
43
|
+
fi
|
|
44
|
+
done
|
|
45
|
+
echo "}" >> $2
|
|
46
|
+
|
|
47
|
+
cat $2 | jq > $2.tmp
|
|
48
|
+
mv $2.tmp $2
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
set -euxo pipefail
|
|
3
|
+
|
|
4
|
+
VERSION=$(cat package.json | jq -r '.version')
|
|
5
|
+
NAME=$(cat package.json | jq -r '.name')
|
|
6
|
+
|
|
7
|
+
test -z "$(npm info $NAME@$VERSION)"
|
|
8
|
+
if [ $? -eq 0 ]; then
|
|
9
|
+
set -e
|
|
10
|
+
|
|
11
|
+
git config --global user.email "ci@dydx.exchange"
|
|
12
|
+
git config --global user.name "github_actions"
|
|
13
|
+
|
|
14
|
+
# Get version and tag
|
|
15
|
+
git tag v${VERSION}
|
|
16
|
+
git push --tags
|
|
17
|
+
|
|
18
|
+
npm publish
|
|
19
|
+
else
|
|
20
|
+
echo "skipping publish, package $NAME@$VERSION already published"
|
|
21
|
+
fi
|