Is it possible to make a switch button between languages on only one page of the site (not the home page)?
The idea is to make a special multi-language page, while the other pages of the site will be shown in only one language
Is it possible to make a switch button between languages on only one page of the site (not the home page)?
The idea is to make a special multi-language page, while the other pages of the site will be shown in only one language
You could definitely do that
Have the language button hidden by default, then only show it in that particular page
multilingualPage.js
$w('#language').show()
Furthermore, you’ll need to reset the language when the user enters a different page
masterPage.js
import wixLocation from 'wix-location-frontend'
import wixWindow from 'wix-window-frontend'
if (wixLocation.path !== 'multilingualPage')
// Checks the url path does not match the one set for the multilingual page
wixWindow.multilingual.currentLanguage = 'en' // or whatever language you use as default
There are probably other ways but this one seems simple enough
If you install the Wix Multilingual app, drag the multilingual dropdown onto the page you want to translate. The app is for all pages. There is no way to change that. Just don’t translate the other pages.
The most efficient and effective way would be to create a database collection and connect every piece of text, image, etc, on that page via code IF you have. ore than 2 languages . You can use a dropdown for each language then filter/ set the content on the page based on the language they selected in the drop down.
If you only have 2 languages, literally just build the design on the page twice —— then using code you can hide or show the correct sections based on the language someone selects on a dropdown, toggle, etc.