From 21f7174c6d5ca6b5eda5bc6dc3e7c595a41e97cc Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Tue, 25 Jan 2022 10:34:55 +0000 Subject: [PATCH] donate: Attempt to guess people's locale Signed-off-by: Michael Tremer --- src/web/donate.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/web/donate.py b/src/web/donate.py index 319dac96..37bb2c1c 100644 --- a/src/web/donate.py +++ b/src/web/donate.py @@ -51,6 +51,7 @@ class DonateHandler(auth.CacheMixin, base.BaseHandler): frequency = self.get_argument("frequency") organization = None + locale = self.get_browser_locale() # Get organization information if type == "organization": @@ -65,6 +66,7 @@ class DonateHandler(auth.CacheMixin, base.BaseHandler): "title" : self.get_argument("title"), "first_name" : self.get_argument("first_name"), "last_name" : self.get_argument("last_name"), + "locale" : locale.code, } # Collect address information -- 2.39.2