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

@@ -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