mirror of
https://codeberg.org/Hyperpipe/Hyperpipe
synced 2025-06-29 13:28:02 +02:00
add t/strings for copy to clipboard
This commit is contained in:
parent
b5a585174e
commit
3139202d87
3 changed files with 8 additions and 4 deletions
|
@ -8,12 +8,14 @@ import { useUpdatePlaylist } from '@/scripts/db.js';
|
|||
|
||||
import { useResults, useArtist } from '@/stores/results.js';
|
||||
import { useData, usePlayer } from '@/stores/player.js';
|
||||
import { useI18n } from '@/stores/misc.js';
|
||||
|
||||
const rand = useRand(),
|
||||
data = useData(),
|
||||
results = useResults(),
|
||||
player = usePlayer(),
|
||||
artist = useArtist();
|
||||
artist = useArtist(),
|
||||
{ t } = useI18n();
|
||||
|
||||
const props = defineProps({
|
||||
index: Number,
|
||||
|
@ -94,7 +96,7 @@ const openSong = el => {
|
|||
} else {
|
||||
navigator.clipboard.writeText(location.host + props.play).then(
|
||||
() => {
|
||||
alert('Copied to Clipboard');
|
||||
alert(t('info.copied_to_clipboard'));
|
||||
},
|
||||
err => {
|
||||
console.log(err);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue