We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd08e06 commit 5d7d100Copy full SHA for 5d7d100
i18n/en.yaml
@@ -17,3 +17,9 @@
17
18
- id: home
19
translation: "Home"
20
+
21
+- id: copy
22
+ translation: "copy"
23
24
+- id: copied
25
+ translation: "copied!"
layouts/partials/footer.html
@@ -104,12 +104,12 @@
104
105
const copybutton = document.createElement('button');
106
copybutton.classList.add('copy-code');
107
- copybutton.innerText = 'copy';
+ copybutton.innerText = '{{- i18n "copy" | default "copy" }}';
108
109
function copyingDone() {
110
- copybutton.innerText = 'copied!';
+ copybutton.innerText = '{{- i18n "copied" | default "copied!" }}';
111
setTimeout(() => {
112
113
}, 2000);
114
}
115
0 commit comments