| @@ -22,9 +22,9 @@ | ||
| 22 | 22 | fontSize: "18px", |
| 23 | 23 | cursor: "pointer", |
| 24 | 24 | lineHeight: 1, |
| 25 | 25 | }) |
| 26 | - .attr("title", wp.i18n.__("Show password", "subscription")); | |
| 26 | + .attr("title", "Show password"); | |
| 27 | 27 | |
| 28 | 28 | // Toggle functionality |
| 29 | 29 | $toggleBtn.on("click", function () { |
| 30 | 30 | isPassword = $input.attr("type") === "password"; |
| @@ -31,12 +31,9 @@ | ||
| 31 | 31 | $input.attr("type", isPassword ? "text" : "password"); |
| 32 | 32 | $toggleBtn |
| 33 | 33 | .removeClass("dashicons-visibility dashicons-hidden") |
| 34 | 34 | .addClass(isPassword ? "dashicons-hidden" : "dashicons-visibility") |
| 35 | - .attr( | |
| 36 | - "title", | |
| 37 | - isPassword ? wp.i18n.__("Hide password", "subscription") : wp.i18n.__("Show password", "subscription"), | |
| 38 | - ); | |
| 35 | + .attr("title", isPassword ? "Hide password" : "Show password"); | |
| 39 | 36 | }); |
| 40 | 37 | |
| 41 | 38 | // Insert button |
| 42 | 39 | $input.after($toggleBtn); |
| @@ -62,9 +59,9 @@ | ||
| 62 | 59 | fontSize: "18px", |
| 63 | 60 | cursor: "pointer", |
| 64 | 61 | lineHeight: 1, |
| 65 | 62 | }) |
| 66 | - .attr("title", wp.i18n.__("Copy to clipboard", "subscription")); | |
| 63 | + .attr("title", "Copy to clipboard"); | |
| 67 | 64 | |
| 68 | 65 | // Copy functionality |
| 69 | 66 | $copyBtn.on("click", function (event) { |
| 70 | 67 | event.preventDefault(); |
| @@ -80,11 +77,11 @@ | ||
| 80 | 77 | tempInput.select(); |
| 81 | 78 | document.execCommand("copy"); |
| 82 | 79 | document.body.removeChild(tempInput); |
| 83 | 80 | } |
| 84 | - alert(wp.i18n.__("Copied to clipboard.", "subscription")); | |
| 81 | + alert("Data successfully copied to clipboard."); | |
| 85 | 82 | } catch (err) { |
| 86 | - alert(wp.i18n.__("Could not copy. Please copy it manually.", "subscription")); | |
| 83 | + alert("Failed to the data. Please try to copy manually."); | |
| 87 | 84 | console.error("Failed to the data. ", err); |
| 88 | 85 | } |
| 89 | 86 | }); |
| 90 | 87 | |