mirror of
https://github.com/we-promise/sure.git
synced 2026-04-07 14:31:25 +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:
@@ -21,14 +21,15 @@ class UsersControllerTest < ActionDispatch::IntegrationTest
|
||||
name: "New Family Name",
|
||||
country: "US",
|
||||
date_format: "%m/%d/%Y",
|
||||
currency: "USD",
|
||||
locale: "en"
|
||||
}
|
||||
currency: "USD"
|
||||
},
|
||||
locale: "es"
|
||||
}
|
||||
}
|
||||
|
||||
assert_redirected_to settings_profile_url
|
||||
assert_equal "Your profile has been updated.", flash[:notice]
|
||||
assert_equal "es", @user.reload.locale
|
||||
end
|
||||
|
||||
test "admin can reset family data" do
|
||||
|
||||
Reference in New Issue
Block a user