"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getCulture = getCulture;
const get_prop_1 = require("../objects/get-prop");
/**
 * Return the culture from the Hub Request Options
 * In priority order: user.culture, portal.culture, en-us
 * @param {IHubRequestOptions} hubRequestOptions
 */
function getCulture(hubRequestOptions) {
    return ((0, get_prop_1.getProp)(hubRequestOptions, "portalSelf.user.culture") ||
        (0, get_prop_1.getProp)(hubRequestOptions, "portalSelf.culture") ||
        "en-us");
}
//# sourceMappingURL=get-culture.js.map