Repository URL to install this package:
|
Version:
5.0.0-rc.10 ▾
|
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
/**
* Get locale from browser
*
* @returns {string} browser locale, i.e. `en`, `en-US`, `fr`, ...
*/
/**
* normalize locale to dashes
*
* @param {string} locale
* @returns {string} locale
*/
var normalizeLocale = function normalizeLocale(locale) {
return (locale || '').replace('_', '-');
};
exports.normalizeLocale = normalizeLocale;
//# sourceMappingURL=utils.js.map