# Interface language issue (after invite)

**URL:** https://meta.discourse.org/t/interface-language-issue-after-invite/216336
**Category:** Bug
**Tags:** pr-welcome
**Created:** [January 28, 2022, 5:08pm UTC](https://meta.discourse.org/t/interface-language-issue-after-invite/216336 "2022-01-28T17:08:50Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![4ong](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/4ong/32/186618_2.png) [@4ong](https://meta.discourse.org/u/4ong)
#### Post date: [January 28, 2022, 5:08pm UTC](https://meta.discourse.org/t/interface-language-issue-after-invite/216336/1 "2022-01-28T17:08:50Z")

</div>

Interface language for anonymous user works correctly - by detection of browser language.

Invitation language also works correctly - still the language of anonymous user.

But interface language **after** - when user accepts invite - automatically became the Discourse default one (f.e. English) interface language.

So members who joins f.e. in French start to see English after the registration by invite.

How to keep the same language as it was in anonymous mode / during the invitation?

An example:  
Anonymous user - French  
Invitation language - French  
after invitation accept, when user is logined in - **default, English**

How can it be solved?  
Thank you!

---

<div class="post-metadata">

### Author: ![4ong](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/4ong/32/186618_2.png) [@4ong](https://meta.discourse.org/u/4ong)
#### Post date: [January 28, 2022, 5:10pm UTC](https://meta.discourse.org/t/interface-language-issue-after-invite/216336/2 "2022-01-28T17:10:08Z")

</div>

If it’s a feature request - please move it to a best fit.  
I consider this as a bug as it’s really not user friendly for communities based on “invitations only” mode.

---

<div class="post-metadata">

### Author: ![4ong](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/4ong/32/186618_2.png) [@4ong](https://meta.discourse.org/u/4ong)
#### Post date: [February 1, 2022, 3:41pm UTC](https://meta.discourse.org/t/interface-language-issue-after-invite/216336/3 "2022-02-01T15:41:09Z")

</div>

@osioke may I ask you to take a brief look on this as well (this topic).  
I’m not sure if it’s a bug or intentional functionality, but many users report related complications.  
I’m sorry if that’s not your question - I don’t know who to address it to.

Thanks!

---

<div class="post-metadata">

### Author: ![osioke](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/osioke/32/238946_2.png) [@osioke](https://meta.discourse.org/u/osioke)
#### Post date: [February 1, 2022, 7:26pm UTC](https://meta.discourse.org/t/interface-language-issue-after-invite/216336/4 "2022-02-01T19:26:55Z")

</div>

Thank you for the mention! 😃

What Discourse version are you running?

And if you have a screen recording of this happening, that would also be very helpful 🙂

---

<div class="post-metadata">

### Author: ![4ong](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/4ong/32/186618_2.png) [@4ong](https://meta.discourse.org/u/4ong)
#### Post date: [February 2, 2022, 11:09am UTC](https://meta.discourse.org/t/interface-language-issue-after-invite/216336/5 "2022-02-02T11:09:06Z")

</div>

Thanks @osioke  
I use latest Discourse version 2.9.0.beta1  
( [a1adc13125](https://github.com/discourse/discourse/commits/a1adc13125c9073fe4a86a8eda03a6d1489e362e) )

And it was always like this (as far as I remember).

Here is a screen record of the issue:

It’s short and it shows how interface language became English instead of initial Russian (immediately after invitation accept).

It works like this with invitations accepted with Google/Facebook/Twitter/LinkedIn auth.

And with this issue every user needs to navigate and change their language back just after registration by invite.

Thanks!

---

<div class="post-metadata">

### Author: ![osioke](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/osioke/32/238946_2.png) [@osioke](https://meta.discourse.org/u/osioke)
#### Post date: [February 2, 2022, 12:44pm UTC](https://meta.discourse.org/t/interface-language-issue-after-invite/216336/6 "2022-02-02T12:44:12Z")

</div>

Thank you for sharing @4ong really sorry about this, we will look into it.

---

<div class="post-metadata">

### Author: ![4ong](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/4ong/32/186618_2.png) [@4ong](https://meta.discourse.org/u/4ong)
#### Post date: [February 2, 2022, 2:20pm UTC](https://meta.discourse.org/t/interface-language-issue-after-invite/216336/9 "2022-02-02T14:20:36Z")

</div>

Thank you @osioke - I will try to look if I will be able to help too.

---

<div class="post-metadata">

### Author: ![osioke](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/osioke/32/238946_2.png) [@osioke](https://meta.discourse.org/u/osioke)
#### Post date: [February 2, 2022, 3:13pm UTC](https://meta.discourse.org/t/interface-language-issue-after-invite/216336/11 "2022-02-02T15:13:51Z")

</div>

Cool cool. We are already discussing possible ways to resolve this.

---

<div class="post-metadata">

### Author: ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)
#### Post date: [February 2, 2022, 5:01pm UTC](https://meta.discourse.org/t/interface-language-issue-after-invite/216336/12 "2022-02-02T17:01:42Z")

</div>

Thanks for the detailed report, Anatol. I see this as a feature request, but I do understand the confusion that a user encounters when seeing the site in one language as an anonymous user and another language once they are signed in.

We could use a site setting here that enables saving the user locale based on the browser/OS setting on signup. Currently, we only have the “set interface language for anonymous users from their web browser’s language headers” setting, which is clearly for non-authenticated users.

Marking this as #pr-welcome, we don’t have bandwidth at the moment to take on this work, but happy to see it happen.

---

<div class="post-metadata">

### Author: ![4ong](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/4ong/32/186618_2.png) [@4ong](https://meta.discourse.org/u/4ong)
#### Post date: [February 2, 2022, 5:28pm UTC](https://meta.discourse.org/t/interface-language-issue-after-invite/216336/14 "2022-02-02T17:28:44Z")

</div>

Thank you @pmusaraj

> [@pmusaraj](#):
>
> Marking this as #pr-welcome, we don’t have bandwidth at the moment to take on this work, but happy to see it happen.

Ok - I will take a look if I will be able to handle this.

> [@pmusaraj](#):
>
> I do understand the confusion that a user encounters when seeing the site in one language as an anonymous user and another language once they are signed in.

1. When user don’t know the default language - it can be quite complex for him to go and change the language back to his native.

2. In multi language communities invites often lead to some particular topic with initial how-to, welcome post…  
And that topic (or even whole category) is usually formed in the language of the invitation.

So only interface language changes to default one. And it’s quite inconsistent and not user friendly in this case, imho.
