Dear all
I’ve created all the mulit-language website contents by using database.
But I got a problem which is it won’t switch perfectly.
If I choose “English”, there are some contexts still Arabic.
I’m sure that their properties ID are match to the database.
Hi,
I’d recommend you to check out this article about creating a multilingual site as it is the right way to do it.
Good luck
Hi there,
Did you ever resolve your issue with your multilingual database? I’m having the same issue.
Thanks,
Vladimir
This response is not helpful, Or, because none of the information on the page you link to deals with databases.
Wix Multilingual have their own Wix Support pages that you can view.
https://support.wix.com/en/wix-multilingual/wix-multilingual-basics
If you want to use datasets, then vote for it here.
https://support.wix.com/en/article/request-using-wix-multilingual-with-database-collections
You will be advisable to read this page too.
https://support.wix.com/en/article/translatable-content-in-wix-multilingual
What content can I translate?
Text (in text boxes, menu items, on buttons, in lists and grids, etc.)
Images and backgrounds
Pro Gallery
Links
Lightboxes
Wix Forms
SEO settings
Wix Stores (Some automatically generated store front text does not appear in every language. Learn More)
What can't be translated?
At present, you cannot translate content found in:
Most Wix business solutions (Wix Hotel, Wix Bookings, Wix Restaurants etc.)
Wix apps (Wix Blog, Wix Forum, Wix Chat etc.) and third-party apps. Vote for this feature
Members Area
Content added using Corvid by Wix
Old contact form/Get Subscribers form. You should replace these with Wix Forms which can be translated.
Old lists
How does it work?
Once you have finished building your site in your main language, use Wix Multilingual to translate it into more languages. Your site visitors can choose from the Language Menu on your site which language they want to view your site in.
With Wix Multilingual, you create different versions of the same site (e.g. a French version, a Spanish version, etc.). You do not create duplicate sites in each language. To understand what can and can’t be translated, click here.
@curtis
You didn’t have to just read that page, you could have viewed all the rest of the pages in Wix Multilingual own Wix Support pages.
Like this page here.
https://support.wix.com/en/article/translatable-content-in-wix-multilingual
Plus, as it is a Wix app and not connected to Wix Corvid, you are better off going through Wix Support for more help on this issue.
https://support.wix.com/en/about-wix/contacting-wix-support
They would have been able to simply tell you about this feature request here.
https://support.wix.com/en/article/request-using-wix-multilingual-with-database-collections
How does it work?
Once you have finished building your site in your main language, use Wix Multilingual to translate it into more languages. Your site visitors can choose from the Language Menu on your site which language they want to view your site in.
With Wix Multilingual, you create different versions of the same site (e.g. a French version, a Spanish version, etc.). You do not create duplicate sites in each language. To understand what can and can’t be translated, click here .
Same here, the only workaround I see at the moment is
- create a repeater for each language
- make them hidden by default
- show the correct repeater by the relevant language
import wixWindow from 'wix-window';
myLang = wixWindow.multilingual.currentLanguage;
$w.onReady(function () {
if (myLang === 'en') {
$w('#repeaterEN').show()
}
else if (myLang === 'de') {
$w('#repeaterDE').show()
}
});
@rotemabir Thanks, that’s all I needed.
How do you hide repeaters by default?
@rotemabir hi, thank you . can you help me please
hey @basbilir I forgot the variable deceleration in my snippet above.
Just add ‘let’ before ‘myLang’ and you have it working:
let myLang = wixWindow.multilingual.currentLanguage;
@Nick Pinn Click on the element you want to hide, then in the terminal below (Dev Mode) on the right-hand side you can mark “Hidden” under “Default Values”
Thank you! This worked great!
If it can help someone else, here is my use case.
I have a gallery connected to a database on a multilingual site.
I duplicated the gallery, connected it to a new dataset, connecting the fields to the second language data. Then I set both galleries to hidden and collapsed by default.
Using the example above I adjusted the code to my needs:
import wixWindow from ‘wix-window’ ;
let myLang = wixWindow.multilingual.currentLanguage ;
$w . onReady ( function () {
//changes the gallery to match language selection
if ( myLang === ‘fr’ ){
$w ( ‘#galleryFr’ ). show ()
$w ( ‘#galleryFr’ ). expand ()
}
else if ( myLang === ‘en’ ){
$w ( ‘#galleryEn’ ). show ()
$w ( ‘#galleryEn’ ). expand ()
}
});