hello,
this code gets selected language and hides section1 if the language is en or de. But you might have issues displaying the section back when the language is selected back to lv without refreshing:
import wixWindow from ‘wix-window’ ;
$w . onReady ( function () {
// Get the selected language
const language = wixWindow . multilingual . currentLanguage ;
// Do something with the selected language
console . log ( The selected language is ${ language });
if ( language === ‘en’ ) {
$w ( ‘#section1’ ). hide ()
}
if ( language === ‘de’ ) {
$w ( ‘#section1’ ). hide ()
}