var replaceLanguage = function (_a) {
    var activeLanguage = _a.activeLanguage, newLanguage = _a.newLanguage;
    var updatedUrl = window.location.href.replace("/".concat(activeLanguage), "/".concat(newLanguage));
    window.location.replace(updatedUrl);
};

export { replaceLanguage };
//# sourceMappingURL=replaceLanguage.js.map
