Jump to content

How to have a login pop-up multilingual?

Recommended Posts

On 12/5/2023 at 1:37 PM, abbiericher said:

the login pop-up doesn't switch to english (it stays in french). I tried looking in Weglot if I could do it manually

The popup is generated dynamically so isn't translated when the page loads. If you're using Weglot, have you looked at how to translate dynamic content?

I haven't tested this with the login so if you experience any issues, I recommend touching base with Weglot support. Please let us know how you get on. 

Did this help? Please give feedback by clicking an icon below  ⬇️

Edited by paul2009

Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. 
Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links.
Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional.

Link to comment
3 minutes ago, paul2009 said:

The popup is generated dynamically so isn't translated when the page loads. If you're using Weglot, have you looked at how to translate dynamic content?

Did this help? Please give feedback by clicking an icon below  ⬇️

Oh! I didn't knew we could do dynamic content with Weglot! Thanks for the tip.

Since i'm new with the selector tool, can you point out the selector to use?
I think it's that one: #user-account-login-root > div > div

but i'm really not sure. And I don't want to play too much with codes.

Link to comment

Hi group,

I would like to translate a dynamic content with Weglot. The Weglot team informed me of the steps, but I need to add the code below just before the </head> on the page:  https://snail-ray-daxz.squarespace.com/account/frame/login

<script src="https://cdn.weglot.com/weglot.min.js"></script>
<script>
// In your iframe
Weglot.initialize({
    api_key: "wg_f95a8aaf9e685f26db9b3558601531210",
    hide_switcher: true // You already have a switcher in parent window
});
</script>

Since it is not a "page" accessible on the Pages Panel, I dont really know where to add the code exactly.

Anyone is able to help me with the code injection?

website: https://snail-ray-daxz.squarespace.com/
pass: freelance

Link to comment
18 hours ago, abbiericher said:

Hi group,

I would like to translate a dynamic content with Weglot. The Weglot team informed me of the steps, but I need to add the code below just before the </head> on the page:  https://snail-ray-daxz.squarespace.com/account/frame/login

<script src="https://cdn.weglot.com/weglot.min.js"></script>
<script>
// In your iframe
Weglot.initialize({
    api_key: "wg_f95a8aaf9e685f26db9b3558601531210",
    hide_switcher: true // You already have a switcher in parent window
});
</script>

Since it is not a "page" accessible on the Pages Panel, I dont really know where to add the code exactly.

Anyone is able to help me with the code injection?

website: https://snail-ray-daxz.squarespace.com/
pass: freelance

Hello Abbie,

 

Did you try the Header section in Code injection in Website Tools? 
By the way, what were the other steps Weglot suggested?

Thanks!

https://.petercambal.online

Link to comment
  • 3 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.