We're Hiring!

Mattermost, Inc.

Forcing language for every user, existing or new

Now that Bulgarian is available as beta, i would like to switch every user i have to Bulgarian.
I’ve set “DefaultServerLocale”: “bg” and “DefaultClientLocale”: “bg” and the login changes to Bulgarian, but not inside, where everything is still in English. Tried that with a couple of accounts. An user can go in its settings and manually change the language to Bulgarian, but i need to do this for all of them.

Hello, @azidhaka1

The way I understand your use case here is that you would like to make the client-side language to completely in Bulgarian. As I understand it, the language within the client would still be configurable based on user specific accounts and this information is stored in the database. Eg.

When set to English:

mysql> SELECT Username, Locale FROM Users WHERE Username = "ahmad.danial";
+--------------+--------+
| Username     | Locale |
+--------------+--------+
| ahmad.danial | en     |
+--------------+--------+
1 row in set (0.00 sec)

When set to Español:

mysql> SELECT Username, Locale FROM Users WHERE Username = "ahmad.danial";
+--------------+--------+
| Username     | Locale |
+--------------+--------+
| ahmad.danial | es     |
+--------------+--------+
1 row in set (0.00 sec)

I am going to check this with the team if there is any possibility of enforcing the language nevertheless besides manually running the SQL query to UPDATE the Locale column to bg.