abbiericher Posted December 5, 2023 Share Posted December 5, 2023 Hi y'all! My client have a bilingual site, but when we try to login as a guest, the login pop-up doesn't switch to english (it stays in french). I tried looking in Weglot if I could do it manually, but not... Any ideas? Is it even possible to have a bilingual pop-up? https://snail-ray-daxz.squarespace.com/ pass:freelance PeterCambal 1 Link to comment
paul2009 Posted December 5, 2023 Share Posted December 5, 2023 (edited) 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 December 13, 2023 by paul2009 PeterCambal 1 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
abbiericher Posted December 5, 2023 Author Share Posted December 5, 2023 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. PeterCambal 1 Link to comment
abbiericher Posted December 12, 2023 Author Share Posted December 12, 2023 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
PeterCambal Posted December 13, 2023 Share Posted December 13, 2023 I have tried several selectors, but the Member login/sign-up dialogue seems to be a special kind of iframe, it kinda does not work with dynamic content in Weglot. It won't even load the popup in Weglot's Visual Editor when calling Login Account or adding the /account/login manually. Link to comment
PeterCambal Posted December 13, 2023 Share Posted December 13, 2023 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
xinyi94 Posted April 4 Share Posted April 4 I'm also trying to translate the login page by Weglot, but it seems not to be possible. Really like to know any other alternative solution . Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment