15 lines
373 B
JavaScript
15 lines
373 B
JavaScript
'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;
|