UNPKG

next-intl

Version:

Internationalization (i18n) for Next.js

11 lines (8 loc) 262 B
import { cache } from 'react'; import getConfig from './getConfig.js'; async function getConfigNowImpl(locale) { const config = await getConfig(locale); return config.now; } const getConfigNow = cache(getConfigNowImpl); export { getConfigNow as default };