Update, I more or less find how to do it but I don’t understand the Wix API. In my case, I want to connect the #title item to my dataset. According to the current language, I want to change its field source :
$w.onReady(function () {
if (wixWindow.multilingual.currentLanguage === 'en') {
$w('#title).
// SOME CODE HERE : that would basically connect the #title item to the titleEN field in my dataset//
}
else if (wixWindow.multilingual.currentLanguage === 'fr') {
$w('#title').
// SAME AS ABOVE : connect the #title item to the titleFR field from the dataset//
});