| @@ -25,9 +25,9 @@ | ||
| 25 | 25 | var originalCursor = btn.style.cursor; |
| 26 | 26 | |
| 27 | 27 | btn.disabled = true; |
| 28 | 28 | btn.style.cursor = "wait"; |
| 29 | - btn.innerHTML = SUBSCRPT_SPINNER_SVG + (btn.dataset.busyLabel || wp.i18n.__("Installing…", "subscription")); | |
| 29 | + btn.innerHTML = SUBSCRPT_SPINNER_SVG + (btn.dataset.busyLabel || "Installing…"); | |
| 30 | 30 | |
| 31 | 31 | var data = new FormData(); |
| 32 | 32 | data.append("action", "subscrpt_install_integration_plugin"); |
| 33 | 33 | data.append("plugin_slug", slug); |
| @@ -46,11 +46,9 @@ | ||
| 46 | 46 | btn.disabled = false; |
| 47 | 47 | btn.style.cursor = originalCursor; |
| 48 | 48 | btn.innerHTML = originalHTML; |
| 49 | 49 | // eslint-disable-next-line no-alert |
| 50 | - window.alert( | |
| 51 | - (result.data && result.data.message) || wp.i18n.__("Installation failed. Please try again.", "subscription"), | |
| 52 | - ); | |
| 50 | + window.alert((result.data && result.data.message) || "Installation failed. Please try again."); | |
| 53 | 51 | } |
| 54 | 52 | }) |
| 55 | 53 | .catch(function () { |
| 56 | 54 | btn.disabled = false; |
| @@ -56,9 +54,9 @@ | ||
| 56 | 54 | btn.disabled = false; |
| 57 | 55 | btn.style.cursor = originalCursor; |
| 58 | 56 | btn.innerHTML = originalHTML; |
| 59 | 57 | // eslint-disable-next-line no-alert |
| 60 | - window.alert(wp.i18n.__("Installation failed. Please try again.", "subscription")); | |
| 58 | + window.alert("Installation failed. Please try again."); | |
| 61 | 59 | }); |
| 62 | 60 | } |
| 63 | 61 | |
| 64 | 62 | /** |