How to change language of all users?

AI-generated summary

The discussion revolves around changing the language for all users in a Discourse forum. satonotdead encountered an issue where users retained their old language settings despite updating the default language to ‘es’. whitewaterdeu suggested checking the default language setting in the admin panel, while pfaffman referenced administrative bulk operations for guidance. tobiaseigen noted that if ‘Allow user locale’ is disabled, users should be forced to use the default locale, and suggested that the default locale setting should apply historically to all users. satonotdead resolved the issue by exporting and importing the custom language as the default, confirming the solution worked.

We used a custom_language (created from a plugin) and now I moved the overrides to default ‘es’ but I see that users stills with the old option selected and I want to clean this.

How can I switch all the users language from Rails? I hope you can help me with this :slight_smile:

Thanks!

hello!
you can visit https://yoursite.com/admin/site_settings/category/required

than you cank see the setting of default language

maybe this will help you :grinning:

Hey, thanks for your answer! I did it already but it seems that some users didn’t get their language fields updated.

Maybe there is some job to work on that or a manual way to update this specific workflow :slight_smile:

i think it will be useful to clear the cache in user browser

There could be some hints in Administrative Bulk Operations

Were you able to resolve your issue?

Do you recall if you had Allow user locale enabled, so your users can choose their own language interface via their preferences? I believe if that is disabled, everyone will be forced to use the default locale you specified in the Default locale setting.

It occurs to me that the Default locale setting should maybe work like the other User Preferences settings. When these settings are changed, you’re prompted with the option to apply the change historically for all users.

Oh, yes. I ended solving this issue exporting and importing the custom language (ES_XX) as default on (ES on my case).

Thanks for your following up, I forget this thread.