hide audio player on selected language site

Hi,
I am trying to hide english songs (audio player no1) in turkish site and hide turkish songs in english site. so according to what I saw in forums I inserted this code, but it did not work. What do I do wrong here:

// Velo API Reference: Introduction - Velo API Reference - Wix.com

import wixWindow from ‘wix-window’ ;
$w . onReady ( function () {
let language = wixWindow . multilingual . currentLanguage ;
if ( language === “TR” ) {
$w ( “#audioPlayer1” ). hide ();
} else {
$w ( “#audioPlayer1” ). show ();

// Write your Javascript code here using the Velo framework API 

// Print hello world: 
// console.log("Hello world!"); 

// Call functions on page elements, e.g.: 
// $w("#button1").label = "Click me!"; 

// Click "Run", or Preview your site, to execute your code 

});

Thank you so much,
Eren

Maybe you can find something useful here.
I did not read it…

I don’t know how to code. so if possible, if a coder reviews the code I sent, I would appreciate it a lot!

Any one there?

Hi! This code checks the IP address of the person, if it is in the country you specified, the audio player will be hidden. For this change this line: (ip === " en " )

export function button1_viewportEnter(event) {
checkLanguageAndHide();
}

export function checkLanguageAndHide() {
return fetch('https://api.ipify.org?format=json')
.then(response => response.json())
.then(data => {
const {ip} = data;
if(ip === "en") {
$w('#audio1').hide();
}
})
.catch(error => console.log(error));
}

@Eren Tokgöz good luck!

how will I change that part then? to just check the selected language of my wix site and hide / show accordinly. I mean the ones here: