mirror of
https://codeberg.org/Hyperpipe/Hyperpipe
synced 2025-06-28 05:08:00 +02:00
add strings for charts country selection
This commit is contained in:
parent
311f3a698e
commit
a50892c49d
4 changed files with 328 additions and 0 deletions
|
@ -4,6 +4,7 @@ import { ref, reactive, watch, onMounted } from 'vue';
|
|||
import AlbumItem from '@/components/AlbumItem.vue';
|
||||
import SongItem from '@/components/SongItem.vue';
|
||||
|
||||
import { translateCountryNames } from '@/scripts/countries.js';
|
||||
import { getJsonHyp } from '@/scripts/fetch.js';
|
||||
|
||||
import { useResults, useArtist } from '@/stores/results.js';
|
||||
|
@ -32,6 +33,9 @@ async function getCharts() {
|
|||
if (!id.value)
|
||||
id.value = json.options.all.find(i => i.title == json.options.default).id;
|
||||
|
||||
translateCountryNames(json.options.all);
|
||||
console.log(json.options.all)
|
||||
|
||||
data.options = json.options.all;
|
||||
data.songs = json.trending;
|
||||
data.artists = json.artists;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue