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:
@@ -20,6 +20,10 @@ darkMode = "夜晚模式"
|
||||
warning = "警告"
|
||||
caution = "注意"
|
||||
|
||||
[article.codeblock]
|
||||
copy = "複製"
|
||||
copied = "已複製!"
|
||||
|
||||
[notFound]
|
||||
title = "404 錯誤"
|
||||
subtitle = "頁面不存在"
|
||||
|
||||
Reference in New Issue
Block a user