Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multilingual registration auth code template is not translated #6616

Open
outline4 opened this issue Aug 15, 2024 · 2 comments
Open

Multilingual registration auth code template is not translated #6616

outline4 opened this issue Aug 15, 2024 · 2 comments

Comments

@outline4
Copy link

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
Copy link
Author

bump

@afbora
Copy link
Member

afbora commented Sep 30, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants