Hi ![]()
You can start doing it by importing Wix Window API and Wix Location API modules.
import wixWindow from 'wix-window';
import wixLocation from 'wix-location';
Then check the current language and redirect visitors based on the language.
const language = wixWindow.multilingual.currentLanguage;
if (language === 'en') {
wixLocation.to('/en/home')
} else if (language === 'de') {
wixLocation.to('/en/home')
}
// If you want to dynamic redirecting use this method
wixLocation.to(`/${language}/home`);
Hope this helps~!
Ahmad