From d89def07acfa3df3264e831b999e145ca6321a84 Mon Sep 17 00:00:00 2001 From: Jimmy Cai Date: Sun, 12 Jun 2022 14:26:20 +0000 Subject: [PATCH] feat: i18n support for codeblock copy text --- i18n/en.yaml | 3 +++ layouts/_default/_markup/render-codeblock.html | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/i18n/en.yaml b/i18n/en.yaml index 32223f1..3f94ab1 100644 --- a/i18n/en.yaml +++ b/i18n/en.yaml @@ -19,6 +19,9 @@ article: readingTime: one: "{{ .Count }} minute read" other: "{{ .Count }} minute read" + codeblock: + copy: Copy + copied: Copied! notFound: title: Not Found diff --git a/layouts/_default/_markup/render-codeblock.html b/layouts/_default/_markup/render-codeblock.html index 052efe3..21c5100 100644 --- a/layouts/_default/_markup/render-codeblock.html +++ b/layouts/_default/_markup/render-codeblock.html @@ -6,9 +6,9 @@