Use browser Accept-Language for login and onboarding locale (#768)

* Use Accept-Language for unauthenticated locale

* Add per-user locale overrides

* Fix test

* Use more than the top `accept-language` entry

* Localization of string
This commit is contained in:
Juan José Mata
2026-01-24 22:00:41 +01:00
committed by GitHub
parent 959029fda6
commit c7ab25b866
21 changed files with 163 additions and 17 deletions

View File

@@ -0,0 +1,6 @@
class AddLocaleToUsers < ActiveRecord::Migration[7.2]
def change
add_column :users, :locale, :string, null: true, default: nil
add_index :users, :locale
end
end