/**
 * DevExtreme (cjs/localization/parentLocale.js)
 * Version: 23.2.4 (build 24056-0112)
 * Build date: Sun Feb 25 2024
 *
 * Copyright (c) 2012 - 2024 Developer Express Inc. ALL RIGHTS RESERVED
 * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
 */
"use strict";
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;
