UNPKG

next-intl

Version:

Internationalization (i18n) for Next.js

15 lines (10 loc) 373 B
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var React = require('react'); var getConfig = require('./getConfig.js'); async function getLocaleCachedImpl() { const config = await getConfig.default(); return Promise.resolve(config.locale); } const getLocaleCached = React.cache(getLocaleCachedImpl); exports.default = getLocaleCached;