mirror of
https://github.com/saicaca/fuwari.git
synced 2026-01-12 07:12:52 +01:00
feat: copy button for code blocks (#67)
* Add code copy * fix: safari copyButton style * fix: addPreCopyButton up time * modify: CopyButton style * fix: Duplicate rendering issue with copy button
This commit is contained in:
@@ -32,6 +32,9 @@ enum I18nKey {
|
||||
author = 'author',
|
||||
publishedAt = 'publishedAt',
|
||||
license = 'license',
|
||||
|
||||
codeCopy = 'copy',
|
||||
codeCopied = 'codeCopied',
|
||||
}
|
||||
|
||||
export default I18nKey
|
||||
|
||||
@@ -35,4 +35,7 @@ export const en: Translation = {
|
||||
[Key.author]: 'Author',
|
||||
[Key.publishedAt]: 'Published at',
|
||||
[Key.license]: 'License',
|
||||
|
||||
[Key.codeCopy]: 'Copy',
|
||||
[Key.codeCopied]: 'Code copied',
|
||||
}
|
||||
|
||||
@@ -35,4 +35,7 @@ export const ja: Translation = {
|
||||
[Key.author]: '作者',
|
||||
[Key.publishedAt]: '公開日',
|
||||
[Key.license]: 'ライセンス',
|
||||
|
||||
[Key.codeCopy]: 'コピー',
|
||||
[Key.codeCopied]: 'コピーしました',
|
||||
}
|
||||
|
||||
@@ -35,4 +35,7 @@ export const zh_CN: Translation = {
|
||||
[Key.author]: '作者',
|
||||
[Key.publishedAt]: '发布于',
|
||||
[Key.license]: '许可协议',
|
||||
|
||||
[Key.codeCopy]: '复制',
|
||||
[Key.codeCopied]: '复制成功',
|
||||
}
|
||||
|
||||
@@ -35,4 +35,7 @@ export const zh_TW: Translation = {
|
||||
[Key.author]: '作者',
|
||||
[Key.publishedAt]: '發佈於',
|
||||
[Key.license]: '許可協議',
|
||||
|
||||
[Key.codeCopy]: '複製',
|
||||
[Key.codeCopied]: '複製成功',
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user