On 15/07/2015 09:13, Andy McKay wrote:
> When a user interacts with the payment service, we can get their locale
> from the HTTP headers. Later on we need to send them emails that are
> localized, when no browser is present in the request cycle to determine
> the locale from.
>
> The simple solution to this is store the locale and re-use that at a
> later date.
>
> FXA Profile Server says tantalizingly "A server to provide common
> profile-related data for a Firefox Account. Such as name, avatar,
> location, age, gender, etc
> <https://wiki.mozilla.org/Identity/Firefox-Accounts#What_information_does_Firefox_Accounts_store_about_the_user.3F_Can_I_use_it_to_store_user_data_for_my_application_or_service.3F>.”
> But doesn’t seem to store location in an API I can use (and yes
> location != locale).
>
> Before we go off and store this in our own world, can I confirm that the
> users locale isn’t stored in the FxA land already?
We do in fact store it, since we also need it when sending emails. It's
based on the Accept-Language header used when signing up for the account.
We don't yet expose it to reliers or provide a way for the user the edit
it, but we can and will do so eventually. If this is a priority for
you, we can bump it up our priority list accordingly.
Cheers,
Ryan
_______________________________________________
Dev-fxacct mailing list
[email protected]
https://mail.mozilla.org/listinfo/dev-fxacct