Multilingual Website with Dynamic Datasets

Hi,

I have recently started using Wix Multilingual. I have a product page where the product title and description are connected to a dynamic dataset. I would like those connections to display content in the appropriate language. I have a column for each language and I would to switch columns according to the language used. I saw that there were some discussions regarding this and I was wondering if there have been any updates?

I tried using this code from https://www.wix.com/code/reference/wix-window.multilingual.html#siteLanguages:

$w.onReady( function () {
let language = wixWindow.multilingual.currentLanguage;
$w(“#dynamicDataset”).setFilter( wixData.filter().eq(“Language”, language) );
console.log(language);
} );

But that doesn’t work.

Thank you in advance!

This is what I get in the console if that helps