getkirby / kirby

Kirby's core application folder
https://getkirby.com
Other
1.31k stars 168 forks source link

Multilingual registration auth code template is not translated #6616

Open outline4 opened 2 months ago

outline4 commented 2 months ago

Description

Hi, I have a multilingual site.

I register users on the frontend. I followed the docs: https://getkirby.com/docs/cookbook/forms/user-registration#frontend-login-with-code

It all works great. My default language is "de". I am trying to get everything translated to "fr" and "it".

Within the controller I set the language dynamically based on where the user registers: 'language' => kirby()->language()->code(),

The emails get send in the corresponding language.

There's one template I am not able to serve in the correct language. It's immediately displayed after sending the registration form: /panel/login

Bildschirmfoto 2024-08-14 um 15 07 10

It only displays in the main language (de).

In my opinion this template should be served in the email's associated panel language. Like the emails.

I've checked the users and all of them have the correct panel language set. I hope somebody can help me on the topic.

The screen that follows is half in the main language, and half in the language of the panel user. So maybe there's something a little of?

Bildschirmfoto 2024-08-14 um 16 00 35

Expected behavior
In my opinion this template should be served in the email's associated panel language.

This is the support forum Link https://forum.getkirby.com/t/multilingual-registration-auth-code-template-is-not-translated/32252/1

This is what Sonja sais

I can reproduce that, even the weird mixed language interface. Seems to be a bug. Could you create an issue on GitHub, please?

Your setup

Kirby Version
4.3.0

outline4 commented 1 month ago

bump

afbora commented 1 month ago

I think we need to support language query string for login view: /panel/login?language=fr and we can handle from AppTranslations::panelLanguage() method.