devextreme
Version:
HTML5 JavaScript Component Suite for Responsive Web Development
22 lines (21 loc) • 707 B
JavaScript
/**
* DevExtreme (cjs/common/core/localization/parentLocale.js)
* Version: 24.2.6
* Build date: Mon Mar 17 2025
*
* Copyright (c) 2012 - 2025 Developer Express Inc. ALL RIGHTS RESERVED
* Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
*/
;
exports.default = void 0;
const PARENT_LOCALE_SEPARATOR = "-";
var _default = (parentLocales, locale) => {
const parentLocale = parentLocales[locale];
if (parentLocale) {
return "root" !== parentLocale && parentLocale
}
return locale.substr(0, locale.lastIndexOf("-"))
};
exports.default = _default;
module.exports = exports.default;
module.exports.default = exports.default;