Translate the whole site to English: English routes with 301 redirects from the Dutch paths, English UI, docs, seeds and captions, one-time live content migration
This commit is contained in:
@@ -23,13 +23,13 @@ export class Code extends Component {
|
||||
const button = document.createElement("button");
|
||||
button.type = "button";
|
||||
button.className = "copy-button";
|
||||
button.textContent = "Kopieer";
|
||||
button.textContent = "Copy";
|
||||
button.addEventListener("click", async () => {
|
||||
try {
|
||||
await navigator.clipboard.writeText(code.textContent);
|
||||
Toast.flash(button, "Gekopieerd", 1500, "Kopieer");
|
||||
Toast.flash(button, "Copied", 1500, "Copy");
|
||||
} catch {
|
||||
Toast.flash(button, "Mislukt", 1500, "Kopieer");
|
||||
Toast.flash(button, "Failed", 1500, "Copy");
|
||||
}
|
||||
});
|
||||
this.prepend(button);
|
||||
|
||||
Reference in New Issue
Block a user