add t/strings for copy to clipboard

This commit is contained in:
vrifox 2023-07-18 17:24:50 +02:00
parent b5a585174e
commit 3139202d87
No known key found for this signature in database
GPG key ID: D40098E5B60B2197
3 changed files with 8 additions and 4 deletions

View file

@ -8,12 +8,14 @@ import { useUpdatePlaylist } from '@/scripts/db.js';
import { useResults, useArtist } from '@/stores/results.js'; import { useResults, useArtist } from '@/stores/results.js';
import { useData, usePlayer } from '@/stores/player.js'; import { useData, usePlayer } from '@/stores/player.js';
import { useI18n } from '@/stores/misc.js';
const rand = useRand(), const rand = useRand(),
data = useData(), data = useData(),
results = useResults(), results = useResults(),
player = usePlayer(), player = usePlayer(),
artist = useArtist(); artist = useArtist(),
{ t } = useI18n();
const props = defineProps({ const props = defineProps({
index: Number, index: Number,
@ -94,7 +96,7 @@ const openSong = el => {
} else { } else {
navigator.clipboard.writeText(location.host + props.play).then( navigator.clipboard.writeText(location.host + props.play).then(
() => { () => {
alert('Copied to Clipboard'); alert(t('info.copied_to_clipboard'));
}, },
err => { err => {
console.log(err); console.log(err);

View file

@ -67,7 +67,8 @@
"no_info": "Keine Informationen verfügbar", "no_info": "Keine Informationen verfügbar",
"see_all": "Alle sehen", "see_all": "Alle sehen",
"search": "Suche starten", "search": "Suche starten",
"saved": "Gespeichert!" "saved": "Gespeichert!",
"copied_to_clipboard": "In die Zwischenablage kopiert"
}, },
"instances": { "instances": {
"up_to_date": "Aktuell", "up_to_date": "Aktuell",

View file

@ -67,7 +67,8 @@
"see_all": "See All", "see_all": "See All",
"search": "Start Searching", "search": "Start Searching",
"no_info": "No Information Available", "no_info": "No Information Available",
"saved": "Saved!" "saved": "Saved!",
"copied_to_clipboard": "Copied to Clipboard"
}, },
"instances": { "instances": {
"hyp": "Hyperpipe Instance", "hyp": "Hyperpipe Instance",