hugo-PaperMod/i18n
Kian Kasad 17c4da86b5
Add copy button to copy code block contents (#345)
* add buttons to copy code block contents

Adds a clickable "copy" link in the top-right corner of each code block.

If available, uses the navigator.clipboard API. Falls back to selecting
the text and calling document.execCommand('copy') to copy text.

* hides copy button unless mouse is hovering over code block

* change text of copy button when text is copied

* add translation keys for copy button text  `code_copy` and `code_copied`

* To disable use `Params.disableCodeCopy: true` in site config
2021-04-10 11:33:31 +05:30
..
ar.yaml Minor adjustments in Arabic translations (#309) 2021-03-22 16:49:29 +05:30
bg.yaml i18n: improve for 'es' and add 'bg' (#58) 2020-10-25 09:52:26 +05:30
ca.yaml Add ca.yaml for catalan translation (#237) 2021-02-14 14:42:25 +05:30
de.yaml Add option to show link in meta data for editing posts (#278) 2021-03-23 14:58:26 +05:30
en.yaml Add copy button to copy code block contents (#345) 2021-04-10 11:33:31 +05:30
es.yaml i18n: improve for 'es' and add 'bg' (#58) 2020-10-25 09:52:26 +05:30
fa.yaml i18n: Add translations for fa: Farsi (#56) 2020-10-23 15:11:20 +05:30
fr.yaml Add i18n support for French 2020-09-20 09:16:07 +05:30
he.yaml Add he.yaml Hebrew translation (#259) 2021-02-24 12:55:20 +05:30
hi.yaml i18n: translations for en, hi 2020-09-22 13:41:55 +05:30
hu.yaml Add Hungarian(hu) translations (#203) 2021-01-27 21:30:08 +05:30
id.yaml i18n: Add id Bahasa Indonesia (#173) 2021-01-11 19:13:36 +05:30
it.yaml Add italian (it) translation (#184) 2021-01-20 11:27:30 +05:30
ja.yaml Add more japanese traslations (#202) 2021-01-27 13:30:45 +05:30
ko.yaml Run Prettier 2019-08-20 04:12:30 +08:00
pt.yaml Add portuguese (pt) translation (#294) 2021-03-14 18:52:30 +05:30
ru.yaml i18n: ru: Add full Russian localization (#40) 2020-10-16 18:26:54 +05:30
uz.yaml Add uz.yaml uzbek language translation (#245) 2021-02-16 13:19:15 +05:30
zh.yaml i18n: add more translations for zh (#10) 2020-09-23 13:04:42 +05:30