mirror of
https://github.com/we-promise/sure.git
synced 2026-04-19 12:04:08 +00:00
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:
6
db/migrate/20260124180211_add_locale_to_users.rb
Normal file
6
db/migrate/20260124180211_add_locale_to_users.rb
Normal 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
|
||||
Reference in New Issue
Block a user