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

How to change language? #1036

Open
denis-ivanov opened this issue Mar 3, 2023 · 0 comments
Open

How to change language? #1036

denis-ivanov opened this issue Mar 3, 2023 · 0 comments
Assignees
Labels
question Further information is requested

Comments

@denis-ivanov
Copy link

denis-ivanov commented Mar 3, 2023

Question

We have localized app that uses OpenID authorization. And when the user tries to log in, we want to open a login page with the same language that was in our client app. For example, I authorized in STS and set French language. Then I opened our app, it uses English language. When I try to log in, I want to see a page with English language, but I see French.

options.Events.OnRedirectToIdentityProvider = context =>
{
    context.ProtocolMessage.UiLocales = Thread.CurrentThread.CurrentUICulture.TwoLetterISOLanguageName;
    return Task.CompletedTask;
};

I thought it should help, but it does not affect login page language.

P.S. Thanks for the project.

@denis-ivanov denis-ivanov added the question Further information is requested label Mar 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants