MCPcopy Create free account
hub / github.com/AmazingAng/PolyWorld / useLocalizedMarket

Function useLocalizedMarket

src/hooks/useLocalizedMarket.ts:26–29  ·  view source on GitHub ↗
(market: ProcessedMarket)

Source from the content-addressed store, hash-verified

24 * "Yes"/"No" comparisons, tokenId matching, etc.
25 */
26export function useLocalizedMarket(market: ProcessedMarket): ProcessedMarket {
27 const { locale } = useI18n();
28 return useMemo(() => localizeMarket(market, locale), [locale, market]);
29}

Callers 3

MarketPreviewFunction · 0.90
MarketDetailPanelInnerFunction · 0.90
MarketCardInnerFunction · 0.90

Calls 2

useI18nFunction · 0.90
localizeMarketFunction · 0.85

Tested by

no test coverage detected