add strings for charts country selection

This commit is contained in:
vrifox 2023-07-18 16:30:24 +02:00
parent f638ebbdb8
commit dae923af91
No known key found for this signature in database
GPG key ID: D40098E5B60B2197
4 changed files with 328 additions and 0 deletions

View file

@ -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';
@ -34,6 +35,9 @@ async function getCharts() {
i => i.title == json.options.default,
)[0].id;
translateCountryNames(json.options.all);
console.log(json.options.all)
data.options = json.options.all;
data.songs = json.trending;
data.artists = json.artists;