import { getProp } from "../objects/get-prop";
/**
 * Return the culture from the Hub Request Options
 * In priority order: user.culture, portal.culture, en-us
 * @param {IHubRequestOptions} hubRequestOptions
 */
export function getCulture(hubRequestOptions) {
    return (getProp(hubRequestOptions, "portalSelf.user.culture") ||
        getProp(hubRequestOptions, "portalSelf.culture") ||
        "en-us");
}
//# sourceMappingURL=get-culture.js.map