"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.getCurrentLanguage = exports.setScopeSetting = void 0;
let scopeSetting = null;
const setScopeSetting = setting => {
  scopeSetting = setting;
};
exports.setScopeSetting = setScopeSetting;
const getCurrentLanguage = (fallback = 'en') => {
  var _a, _b;
  return (_b = (_a = scopeSetting === null || scopeSetting === void 0 ? void 0 : scopeSetting.getLanguage) === null || _a === void 0 ? void 0 : _a.call(scopeSetting)) !== null && _b !== void 0 ? _b : fallback;
};
exports.getCurrentLanguage = getCurrentLanguage;
//# sourceMappingURL=scope-setting.js.map