Skip to content

Commit

Permalink
chore: export i18n formatters
Browse files Browse the repository at this point in the history
  • Loading branch information
chybisov committed Jan 23, 2025
1 parent 59d034b commit 5f676f9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions packages/widget/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,7 @@ export * from './types/events.js'
export type { TokenAmount } from './types/token.js'
export * from './types/widget.js'
export { getPriceImpact } from './utils/getPriceImpact.js'
export { percentFormatter } from './utils/percentFormatter.js'
export { compactNumberFormatter } from './utils/compactNumberFormatter.js'
export { currencyExtendedFormatter } from './utils/currencyExtendedFormatter.js'
export { navigationRoutes } from './utils/navigationRoutes.js'
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ import { I18nextProvider } from 'react-i18next'
import * as supportedLanguages from '../../i18n/index.js'
import { useSettings } from '../../stores/settings/useSettings.js'
import { compactNumberFormatter } from '../../utils/compactNumberFormatter.js'
import { currencyExtendedFormatter } from '../../utils/currencyExtendedFormatter.js'
import { deepMerge } from '../../utils/deepMerge.js'
import { isItemAllowed } from '../../utils/item.js'
import { percentFormatter } from '../../utils/percentFormatter.js'
import { useWidgetConfig } from '../WidgetProvider/WidgetProvider.js'
import { currencyExtendedFormatter } from './currencyExtendedFormatter.js'
import type { LanguageKey, LanguageTranslationResources } from './types.js'

export const I18nProvider: React.FC<React.PropsWithChildren> = ({
Expand Down

0 comments on commit 5f676f9

Please sign in to comment.