feat: codeblock improvements (#1328)

* fix: do not show codeblock copy button if clipboard api is not available

related: https://github.com/CaiJimmy/hugo-theme-stack/issues/1309

* fix: remove duplicated codeblock script in main.ts

* feat: add i18n support to codeblock copy button

* feat: add translation strings for codeblock copy button
This commit is contained in:
Jimmy
2026-04-26 13:40:46 +02:00
committed by GitHub
parent 9ddd11797b
commit 08a8b5d767
35 changed files with 181 additions and 34 deletions
+4
View File
@@ -30,6 +30,10 @@ darkMode = "Темна тема"
warning = "Попередження"
caution = "Обережно"
[article.codeblock]
copy = "Копіювати"
copied = "Скопійовано!"
[notFound]
title = "Не знайдено"
subtitle = "Ця сторінка не існує"