"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = getLocalesList;

var _fs = _interopRequireDefault(require("fs"));

var _path = _interopRequireDefault(require("path"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

/**
 * Returns a list of all locales supported by CLDR.
 * @return {string[]}
 */
function getLocalesList() {
  return _fs.default.readdirSync(_path.default.join(__dirname, '../../node_modules/cldr-dates-full/main/')).filter(function (name) {
    return _fs.default.statSync(_path.default.join(__dirname, '../../node_modules/cldr-dates-full/main', name)).isDirectory();
  });
}
//# sourceMappingURL=getLocalesList.js.map