UNPKG

next-intl

Version:

Internationalization (i18n) for Next.js

11 lines (8 loc) 258 B
import { cache } from 'react'; import getConfig from './getConfig.js'; async function getFormatsCachedImpl() { const config = await getConfig(); return config.formats; } const getFormats = cache(getFormatsCachedImpl); export { getFormats as default };