Signin button code in spanish

hi everyone, I’m building a site in spanish and i have followed everything in Velo Tutorial: Building Your Own Members Area | Help Center | Wix.com, so far everything is fine except that when a user clicks on the login button, the screen that appears is in english (even though the dynamic page for the member profile is restricted and in spanish, on the settings panel). Is there a code that I can add so that this login screen can be in spanish?

thank you

Hi,
Can you please send us a screenshot so that we can better understand to which screen you were referring?

Thanks,
Tal.

I have the same problem. When you create a login button following the tutorial posted above, you can label the button whatever language you want it to be in, or whatever symbol or number you want it to display, however when you get to the screen below everything is in English. How can I change that to Spanish?


The code I’m using:

import wixUsers from 'wix-users';
import wixData from 'wix-data';

export function button1_onclick() { 
  // user is logged in
  if(wixUsers.currentUser.loggedIn) {
    // log the user out
    wixUsers.logout()
      .then( () => {
        // update buttons accordingly
        $w("#button1").label = "Registro";
        $w("#button2").hide();
    } );
  }
  // user is logged out
  else {
    let userId;
    let userEmail;
  
    // prompt the user to log in 
    wixUsers.promptLogin( {"mode": "login"} )
      .then( (user) => {
        userId = user.id;
        return user.getEmail();
      } )
      .then( (email) => {
        // check if there is an item for the user in the collection
        userEmail = email;
        return wixData.query("Afiliados")
          .eq("_id", userId)
          .find();
      } )
      .then( (results) => {
        // if an item for the user is not found
        if (results.items.length === 0) {
          // create an item
          const toInsert = {
            "_id": userId,
            "email": userEmail,
            'title':'https://static.wixstatic.com/media/d8cc8a_4fa1b1ae223745c683d9b94dc0ecfd7e~mv2.png/v1/fit/w_375,h_375/d8cc8a_4fa1b1ae223745c683d9b94dc0ecfd7e~mv2.png'
            
          };
          // add the item to the collection
          wixData.insert("Afiliados", toInsert)
            .catch( (err) => {
              console.log(err);
            } );
        }
        // update buttons accordingly
        $w("#button1").label = "Cerrar sesión";
        $w("#button2").show();
      } )
      .catch( (err) => {
        console.log(err);
      } );
  }
}