next-intl
Version:
Internationalization (i18n) for Next.js
18 lines (13 loc) • 494 B
JavaScript
;
Object.defineProperty(exports, '__esModule', { value: true });
var React = require('react');
var getConfig = require('./getConfig.js');
async function getTimeZoneCachedImpl(locale) {
const config = await getConfig.default(locale);
return config.timeZone;
}
const getTimeZoneCached = React.cache(getTimeZoneCachedImpl);
async function getTimeZone(opts) {
return getTimeZoneCached(opts === null || opts === void 0 ? void 0 : opts.locale);
}
exports.default = getTimeZone;