@orderly.network/i18n 3.0.0-beta.3 → 3.0.0-beta.5
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/dist/{constant-DkvDyddr.d.mts → constant-CiV2HVtI.d.mts} +6 -0
- package/dist/{constant-DkvDyddr.d.ts → constant-CiV2HVtI.d.ts} +6 -0
- package/dist/constant.d.mts +1 -1
- package/dist/constant.d.ts +1 -1
- package/dist/index.d.mts +8 -3
- package/dist/index.d.ts +8 -3
- package/dist/index.js +15 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +15 -4
- package/dist/index.mjs.map +1 -1
- package/dist/locale.csv +7 -1
- package/dist/locales/de.json +7 -1
- package/dist/locales/en.json +7 -1
- package/dist/locales/es.json +7 -1
- package/dist/locales/fr.json +7 -1
- package/dist/locales/id.json +7 -1
- package/dist/locales/it.json +7 -1
- package/dist/locales/ja.json +7 -1
- package/dist/locales/ko.json +7 -1
- package/dist/locales/nl.json +7 -1
- package/dist/locales/pl.json +7 -1
- package/dist/locales/pt.json +7 -1
- package/dist/locales/ru.json +7 -1
- package/dist/locales/tc.json +7 -1
- package/dist/locales/tr.json +7 -1
- package/dist/locales/uk.json +7 -1
- package/dist/locales/vi.json +7 -1
- package/dist/locales/zh.json +7 -1
- package/dist/utils.d.mts +1 -1
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +9 -3
- package/dist/utils.js.map +1 -1
- package/dist/utils.mjs +9 -3
- package/dist/utils.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -169,6 +169,8 @@ declare const en: {
|
|
|
169
169
|
"ui.pagination.morePages": string;
|
|
170
170
|
"ui.pagination.rowsPerPage": string;
|
|
171
171
|
"ui.picker.selectDate": string;
|
|
172
|
+
"ui.dialog.srOnly.title": string;
|
|
173
|
+
"ui.sheet.srOnly.title": string;
|
|
172
174
|
"affiliate.referral": string;
|
|
173
175
|
"affiliate.trader": string;
|
|
174
176
|
"affiliate.enter": string;
|
|
@@ -731,7 +733,9 @@ declare const en: {
|
|
|
731
733
|
"tpsl.tpTrigger": string;
|
|
732
734
|
"tpsl.slTrigger": string;
|
|
733
735
|
"tpsl.pnl": string;
|
|
736
|
+
"tpsl.offsetHolder": string;
|
|
734
737
|
"tpsl.offset": string;
|
|
738
|
+
"tpsl.offsetPercent": string;
|
|
735
739
|
"tpsl.add": string;
|
|
736
740
|
"tpsl.cancelAll": string;
|
|
737
741
|
"tpsl.dragToSet": string;
|
|
@@ -778,6 +782,8 @@ declare const en: {
|
|
|
778
782
|
"tpsl.tpslDetail.estPnl": string;
|
|
779
783
|
"tpsl.tpslDetail.estPnl.tooltip": string;
|
|
780
784
|
"tpsl.agreement": string;
|
|
785
|
+
"tpsl.offsetMark": string;
|
|
786
|
+
"tpsl.offsetPercentMark": string;
|
|
781
787
|
"orders.orderHistory": string;
|
|
782
788
|
"orders.status.pending": string;
|
|
783
789
|
"orders.status.filled": string;
|
|
@@ -169,6 +169,8 @@ declare const en: {
|
|
|
169
169
|
"ui.pagination.morePages": string;
|
|
170
170
|
"ui.pagination.rowsPerPage": string;
|
|
171
171
|
"ui.picker.selectDate": string;
|
|
172
|
+
"ui.dialog.srOnly.title": string;
|
|
173
|
+
"ui.sheet.srOnly.title": string;
|
|
172
174
|
"affiliate.referral": string;
|
|
173
175
|
"affiliate.trader": string;
|
|
174
176
|
"affiliate.enter": string;
|
|
@@ -731,7 +733,9 @@ declare const en: {
|
|
|
731
733
|
"tpsl.tpTrigger": string;
|
|
732
734
|
"tpsl.slTrigger": string;
|
|
733
735
|
"tpsl.pnl": string;
|
|
736
|
+
"tpsl.offsetHolder": string;
|
|
734
737
|
"tpsl.offset": string;
|
|
738
|
+
"tpsl.offsetPercent": string;
|
|
735
739
|
"tpsl.add": string;
|
|
736
740
|
"tpsl.cancelAll": string;
|
|
737
741
|
"tpsl.dragToSet": string;
|
|
@@ -778,6 +782,8 @@ declare const en: {
|
|
|
778
782
|
"tpsl.tpslDetail.estPnl": string;
|
|
779
783
|
"tpsl.tpslDetail.estPnl.tooltip": string;
|
|
780
784
|
"tpsl.agreement": string;
|
|
785
|
+
"tpsl.offsetMark": string;
|
|
786
|
+
"tpsl.offsetPercentMark": string;
|
|
781
787
|
"orders.orderHistory": string;
|
|
782
788
|
"orders.status.pending": string;
|
|
783
789
|
"orders.status.filled": string;
|
package/dist/constant.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { f as LocaleEnum, g as defaultLanguages, h as defaultLng, i as defaultNS, k as i18nCookieKey, j as i18nLocalStorageKey } from './constant-
|
|
1
|
+
export { f as LocaleEnum, g as defaultLanguages, h as defaultLng, i as defaultNS, k as i18nCookieKey, j as i18nLocalStorageKey } from './constant-CiV2HVtI.mjs';
|
|
2
2
|
import 'react';
|
package/dist/constant.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { f as LocaleEnum, g as defaultLanguages, h as defaultLng, i as defaultNS, k as i18nCookieKey, j as i18nLocalStorageKey } from './constant-
|
|
1
|
+
export { f as LocaleEnum, g as defaultLanguages, h as defaultLng, i as defaultNS, k as i18nCookieKey, j as i18nLocalStorageKey } from './constant-CiV2HVtI.js';
|
|
2
2
|
import 'react';
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { R as Resources, A as AsyncResources, L as LocaleCode, a as LanguageContextState } from './constant-
|
|
2
|
-
export { b as Language, d as LanguageContext, f as LocaleEnum, e as LocaleMessages, P as PopupMode, c as PopupProps, g as defaultLanguages, h as defaultLng, i as defaultNS, l as en, k as i18nCookieKey, j as i18nLocalStorageKey, u as useLanguageContext } from './constant-
|
|
1
|
+
import { R as Resources, A as AsyncResources, L as LocaleCode, a as LanguageContextState } from './constant-CiV2HVtI.mjs';
|
|
2
|
+
export { b as Language, d as LanguageContext, f as LocaleEnum, e as LocaleMessages, P as PopupMode, c as PopupProps, g as defaultLanguages, h as defaultLng, i as defaultNS, l as en, k as i18nCookieKey, j as i18nLocalStorageKey, u as useLanguageContext } from './constant-CiV2HVtI.mjs';
|
|
3
3
|
import * as react_i18next from 'react-i18next';
|
|
4
4
|
import { FallbackNs, UseTranslationOptions } from 'react-i18next';
|
|
5
5
|
export * from 'react-i18next';
|
|
@@ -105,4 +105,9 @@ declare function useLocaleCode(): LocaleCode;
|
|
|
105
105
|
*/
|
|
106
106
|
declare function useRegisterExternalResources(resources?: Resources | AsyncResources): void;
|
|
107
107
|
|
|
108
|
-
|
|
108
|
+
/**
|
|
109
|
+
* preload default locale resources to prevent flickering of raw translation keys
|
|
110
|
+
*/
|
|
111
|
+
declare const preloadDefaultResource: (messages: Record<string, string>) => void;
|
|
112
|
+
|
|
113
|
+
export { AsyncResources, Backend, type BackendOptions, ExternalLocaleProvider, type ExternalLocaleProviderProps, LanguageContextState, LanguageProvider, type LanguageProviderProps, LocaleCode, type LocaleJsonModule, LocaleProvider, type LocaleProviderProps, Resources, asMessageRecord, createI18nInstance, i18n, importLocaleJsonModule, preloadDefaultResource, registerDefaultResource, registerResources, useLocaleCode, useRegisterExternalResources, useTranslation };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { R as Resources, A as AsyncResources, L as LocaleCode, a as LanguageContextState } from './constant-
|
|
2
|
-
export { b as Language, d as LanguageContext, f as LocaleEnum, e as LocaleMessages, P as PopupMode, c as PopupProps, g as defaultLanguages, h as defaultLng, i as defaultNS, l as en, k as i18nCookieKey, j as i18nLocalStorageKey, u as useLanguageContext } from './constant-
|
|
1
|
+
import { R as Resources, A as AsyncResources, L as LocaleCode, a as LanguageContextState } from './constant-CiV2HVtI.js';
|
|
2
|
+
export { b as Language, d as LanguageContext, f as LocaleEnum, e as LocaleMessages, P as PopupMode, c as PopupProps, g as defaultLanguages, h as defaultLng, i as defaultNS, l as en, k as i18nCookieKey, j as i18nLocalStorageKey, u as useLanguageContext } from './constant-CiV2HVtI.js';
|
|
3
3
|
import * as react_i18next from 'react-i18next';
|
|
4
4
|
import { FallbackNs, UseTranslationOptions } from 'react-i18next';
|
|
5
5
|
export * from 'react-i18next';
|
|
@@ -105,4 +105,9 @@ declare function useLocaleCode(): LocaleCode;
|
|
|
105
105
|
*/
|
|
106
106
|
declare function useRegisterExternalResources(resources?: Resources | AsyncResources): void;
|
|
107
107
|
|
|
108
|
-
|
|
108
|
+
/**
|
|
109
|
+
* preload default locale resources to prevent flickering of raw translation keys
|
|
110
|
+
*/
|
|
111
|
+
declare const preloadDefaultResource: (messages: Record<string, string>) => void;
|
|
112
|
+
|
|
113
|
+
export { AsyncResources, Backend, type BackendOptions, ExternalLocaleProvider, type ExternalLocaleProviderProps, LanguageContextState, LanguageProvider, type LanguageProviderProps, LocaleCode, type LocaleJsonModule, LocaleProvider, type LocaleProviderProps, Resources, asMessageRecord, createI18nInstance, i18n, importLocaleJsonModule, preloadDefaultResource, registerDefaultResource, registerResources, useLocaleCode, useRegisterExternalResources, useTranslation };
|
package/dist/index.js
CHANGED
|
@@ -960,7 +960,9 @@ var tpsl = {
|
|
|
960
960
|
"tpsl.tpTrigger": "TP trigger",
|
|
961
961
|
"tpsl.slTrigger": "SL trigger",
|
|
962
962
|
"tpsl.pnl": "PnL",
|
|
963
|
-
"tpsl.
|
|
963
|
+
"tpsl.offsetHolder": "Offset",
|
|
964
|
+
"tpsl.offset": "Offset (From entry)",
|
|
965
|
+
"tpsl.offsetPercent": "Offset% (From entry)",
|
|
964
966
|
"tpsl.add": "Add",
|
|
965
967
|
"tpsl.cancelAll": "Cancel all",
|
|
966
968
|
"tpsl.dragToSet": "Drag to set TP/SL",
|
|
@@ -1006,7 +1008,9 @@ var tpsl = {
|
|
|
1006
1008
|
"tpsl.tpslDetail.qty": "Qty.",
|
|
1007
1009
|
"tpsl.tpslDetail.estPnl": "Est. PnL",
|
|
1008
1010
|
"tpsl.tpslDetail.estPnl.tooltip": "The actual value may differ based on the actual trading price. This value is only for reference.",
|
|
1009
|
-
"tpsl.agreement": "You agree to edit your {{symbol}} order."
|
|
1011
|
+
"tpsl.agreement": "You agree to edit your {{symbol}} order.",
|
|
1012
|
+
"tpsl.offsetMark": "Offset (From mark)",
|
|
1013
|
+
"tpsl.offsetPercentMark": "Offset% (From mark)"
|
|
1010
1014
|
};
|
|
1011
1015
|
|
|
1012
1016
|
// src/locale/module/trading.ts
|
|
@@ -1328,7 +1332,9 @@ var ui = {
|
|
|
1328
1332
|
"ui.messageCenter.tooltip": "Check recent announcements",
|
|
1329
1333
|
"ui.pagination.morePages": "More pages",
|
|
1330
1334
|
"ui.pagination.rowsPerPage": "Rows per page",
|
|
1331
|
-
"ui.picker.selectDate": "Select Date"
|
|
1335
|
+
"ui.picker.selectDate": "Select Date",
|
|
1336
|
+
"ui.dialog.srOnly.title": "Dialog",
|
|
1337
|
+
"ui.sheet.srOnly.title": "Sheet"
|
|
1332
1338
|
};
|
|
1333
1339
|
|
|
1334
1340
|
// src/locale/module/vaults.ts
|
|
@@ -1752,6 +1758,11 @@ function useTranslation(ns, options) {
|
|
|
1752
1758
|
});
|
|
1753
1759
|
}
|
|
1754
1760
|
|
|
1761
|
+
// src/external/utils.ts
|
|
1762
|
+
var preloadDefaultResource = (messages) => {
|
|
1763
|
+
i18n_default.addResourceBundle(defaultLng, defaultNS, messages, true, true);
|
|
1764
|
+
};
|
|
1765
|
+
|
|
1755
1766
|
Object.defineProperty(exports, "createInstance", {
|
|
1756
1767
|
enumerable: true,
|
|
1757
1768
|
get: function () { return i18next.createInstance; }
|
|
@@ -1779,6 +1790,7 @@ exports.i18nCookieKey = i18nCookieKey;
|
|
|
1779
1790
|
exports.i18nLocalStorageKey = i18nLocalStorageKey;
|
|
1780
1791
|
exports.importLocaleJsonModule = importLocaleJsonModule;
|
|
1781
1792
|
exports.parseI18nLang = parseI18nLang;
|
|
1793
|
+
exports.preloadDefaultResource = preloadDefaultResource;
|
|
1782
1794
|
exports.registerDefaultResource = registerDefaultResource;
|
|
1783
1795
|
exports.registerResources = registerResources;
|
|
1784
1796
|
exports.removeLangPrefix = removeLangPrefix;
|