Wix Multilingual "current-language" function

Hi, I’m new to this, so probably there’s some basic stuff I’m missing. I’d love for someone experienced to point me in the right direction. Thanks!

So I’m trying to use this function to set my site’s language:

it’s not working, and when I run the code with the editor preview all I see is a message:

“Running the code for the About page. To debug this code in your browser’s dev tools, open rm866.js.”

I don’t know where to look for this file (I’m on FireFox)

Also, in the Velo documentation there’s a function to display all of the site’s languages, here:

but I have no idea where I can see the output of this function. if I try to run the code then it just shows the previous message which I pasted

It’s kind of hard to understand exactly what you’re experiencing without viewing your code….

A. current language is not a function but a variable
B. Are you logging anything for your code to print?

OK I feel like an idiot, I pasted all the code from the velo documentation in to the “on ready” function, when I pasted it as-is on to a blank canvas then suddenly it worked…

Nice, here I was setting up a perfectly fine demo and wasn’t sure why it was not working for you

Definitely should switch the language before loading the site, to prevent loading twice