@orderly.network/trading-points 2.0.1 → 2.0.2

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/index.mjs CHANGED
@@ -5,7 +5,7 @@ import { commify, numberToHumanStyle } from '@orderly.network/utils';
5
5
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
6
6
  import { useScreen, Flex, cn, Box, Text, DropdownMenuRoot, DropdownMenuTrigger, ChevronDownIcon, DropdownMenuPortal, DropdownMenuContent, Divider, CopyIcon, Tooltip, Button, toast, usePagination, DataTable, Spinner } from '@orderly.network/ui';
7
7
  import { isBefore, addDays, isAfter, isWithinInterval, subDays, differenceInDays, format } from 'date-fns';
8
- import { LocaleEnum, ExternalLocaleProvider, importLocaleJsonModule, useTranslation } from '@orderly.network/i18n';
8
+ import { LocaleEnum, registerDefaultResource, ExternalLocaleProvider, importLocaleJsonModule, useTranslation } from '@orderly.network/i18n';
9
9
 
10
10
  // src/index.ts
11
11
  function usePointsData() {
@@ -1926,9 +1926,10 @@ var localeJsonLoaders = {
1926
1926
  [LocaleEnum.nl]: () => import('./nl-LCSV55KV.mjs'),
1927
1927
  [LocaleEnum.tc]: () => import('./tc-JVBJTFFT.mjs')
1928
1928
  };
1929
- var resources = async (lang, _ns) => {
1929
+ registerDefaultResource(LocaleMessages);
1930
+ var resources = (lang, _ns) => {
1930
1931
  if (lang === LocaleEnum.en) {
1931
- return LocaleMessages;
1932
+ return Promise.resolve(LocaleMessages);
1932
1933
  }
1933
1934
  const loader = localeJsonLoaders[lang];
1934
1935
  return importLocaleJsonModule(loader);