How to translate a new customer account page

Hey, I’ve implemented a new customer account (the one where users log in with a code from their email, not a password), and I have a small issue with translating this page. The client uses Weglot as an external app, and I don’t think there’s much chance to use it to translate this page dynamically.

Is there any option to translate this new account page? Specifically, I’m talking about: Profile, Orders, Order status. I even implemented an app there based on the checkout UI and added language versions with translations. I’m just wondering how to handle the translation now. The initial Checkout page works great, but not the Account.

I also thought about Translate & Adapt, but I feel it doesn’t capture it. Unless it’s a matter of configuring the markets somehow. :thinking:

Ok, I did it. I had to add language and country query in the account URL:
your-store/customer_authentication/redirect?locale=pl&region_country=PL

1 Like

Glad you figured this out Iynthius - and thanks for coming back here to post your solution.

Hello lynthius,

I have the same problem with capturing the translation of the orders status page when using OTP login? Could you please explain the query you made in the account URL? I would appreciate. Thank you very much.

Hello lynthius. I have the same problem with capturing the translation of the Orders page when using OTP login. Could please explain how did you add the query to the account URL? I would appreciate. Thank you very much…

Hi, sure. I had to assign a custom href attribute. It looks hacky but works.

<a href="/customer_authentication/redirect?locale={{ request.locale.iso_code }}&region_country={{ localization.country.iso_code }}" >

Maybe someone have a better solution.

Thank you Tomasz, it work just fine…