Skip to content

Commit ffdfa00

Browse files
committed
fix: set the fallback translations for copying codes
1 parent e873e62 commit ffdfa00

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

assets/mods/code-block-panel/js/panel.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ export default class Panel {
9393
ln.remove();
9494
});
9595
navigator.clipboard.writeText(clone.innerText).then(() => {
96-
snackbar.add(i18n.translate('copied'))
96+
snackbar.add(i18n.translate('copied', null, 'Copied!'))
9797
}).catch((err) => {
98-
snackbar.add(i18n.translate('copy_failed'))
98+
snackbar.add(i18n.translate('copy_failed', null, 'Copy failed.'))
9999
console.error(err)
100100
})
101101
}

0 commit comments

Comments
 (0)