Hello!
I have made web page gramatai500 lv with 3 languages LV | DE | ENG.
I have a problem with a Lumifish Timeline in Latvian. It is impossible to translate it into English.
I want to hide this timeline from EN an DE languages.
How to hide a page section in another language, what should the code be?
Thank you!
Madara
Below is a screenshot:
1 Like
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 ()
}