Hi all,
I have a multilingual website with Japanese as primary language and English as secondary one.
Login/Signup lightbox work fine and are fully and automatically translated in both languages when accessing from the login bar .
JAPANESE
ENGLISH
This is not the case when an event is booked in my secondary language (English).
ENGLISH → Event details page → Book → Signup/Login still in Japanese !
NOTE: I’m forcing users to register first before being able to book an event. (Event → Registration Settings → Event Permissions → Who can RSVP to events on your site? → Only site members).
If this is confirmed, this would be a very disappointing issue…
Any clue to solve this ? Thank you folks !
You are posting this on the Corvid Forum which deals with all code related issues only, so the first question would be have you used any code on your site or have you just used Wix Multilingual for it?
If you have not used any code and simply used Wix Multilingual, then it is not a code related issue and you should be going through Wix Support instead.
https://support.wix.com/en/about-wix/contacting-wix-customer-care
If you have used code, then please post it in a code block so that it can be checked.
https://www.wix.com/corvid/reference/wix-window.multilingual.html
@GOS
This is just Wix Events Multilingual issue with no code involved.
However, and this is the reason why I posted here, I was looking for a code workaround if any.
I’ll then go through WIX Support with this question.
Thank you for the clarification.
Okay I got you, however please keep with Wix Support as they can look into why it is reverting back to the original language when you use Wix Events in your second language.
So to workaround it you would probably be able to use Wix Users API and the login function with options.
You would have to not use the default Wix Login Bar that comes with the Wix Members app and use your own button instead on each of the set languages, so that each button can have their own language in the options.
The buttons could be set to hidden on load and then only shown when the appropriate language is in use.
https://www.wix.com/corvid/reference/wix-users.html#login
https://www.wix.com/corvid/reference/wix-users.html#LoginOptions
Examples
Prompt the current user to login
import wixUsers from 'wix-users';
// ...
let options = {"mode": "login", "lang": "es"};
wixUsers.promptLogin(options)
.then( (user) => {
let userId = user.id; // "r5me-6fem-45jf-djhe-484349"
let isLoggedIn = user.loggedIn; // true
let userRole = user.role; // "member"
return user.getEmail();
} )
.then( (email) => {
let userEmail = email; // "user@something.com"
} )
.catch( (err) => {
let errorMsg = err; // "The user closed the login dialog"
} );
Sorry, maybe I wasn’t clear or I did not understand your answer.
Secondary language English selected:
Assume being in event details page where a RSVP button can be clicked to register to the event.
When clicked, as I’m forcing user to signup/login, a lightbox appears with signup/login options but, they’re not translated in English. It all appears in Japanese (see first post)
It is very strange because if I click now to the default Wix Login Bar (remaining in the same page and in English language) all works fine. Lightbox appears and signup/login boxes are automatically and correctly translated in English (see first post).
So the default Wix Login Bar looks working fine in secondary language. This is instead, the RSVP button in event details page which, for some unknown reason, doesn’t follow the same path.
In addition, this event page, cannot be edited. So no way to get element’s ID and catch any of the RSVP button’s event.
A ticket has been opened for this issue with Wix support. Awaiting their answer.
Okay that last image helps a lot as that ‘Book Now’ button is part of the Wix Event app own page setup, so it would be Wix Support that would have to answer you with this one.
The workaround I can see for code is to not have the ‘Book Now’ button in the Wix Events settings, although this would only leave you with the checkout option in the Event listing itself.
https://support.wix.com/en/article/hiding-the-rsvp-button-from-the-events-details-page-in-wix-events
Your best option here is maybe to create your own Custom Events gallery and Events Details pages.
https://support.wix.com/en/article/creating-a-custom-events-gallery
https://support.wix.com/en/article/creating-a-custom-event-details-page
So on the Events Gallery page you can simply leave off the Register button and only have the Details button to take you to the Events Details page, or you can have the Register button disabled until the user has logged themselves in, so the Register button will only be enabled if the user is logged in.
Then on the Events Details page you can have the Register button shown if not already shown on the Events Gallery page and again have it disabled if the user is not logged in and only enabled if the user is logged into your site.
Yes, although this is a bit a tricky solution, there’s the problem of having an Unique Events Collection Table which content is in Primary language.
In fact, my Custom Events Gallery Repeater and Custom Event Details Page , triggers all the information from there. It means that even in English, I pull out Japanese content only.
Since there’s no way of accessing to translated content, another “solution” would be to create a new collection from the scratch including all the content in English. Then you would have to use a new repeater for English language only and connect it to your freshly created collection.
Not a really good approach for maintenance…
Btw, Wix could resolve the issue very quickly in no time by simply connecting the actual Event RSVP button by something like this :
export function rsvpButton_click(event) {
if ( !wixUsers.currentUser.loggedIn) {
wixUsers.promptLogin();
} else {
wixLocation.to(wixLocation.url + "/form");
}
}
Just tested out and depending on which language you are, wixUsers.promptLogin() shows you automatically the right login/signup box translated on that language. The same with wixLocation.to(wixLocation.url + “/form”) which redirects you to the register form translated in that language too.