thunderbird/appointment

Appointment Confirmation Email not in my selected language

Closed this issue · 1 comments

Describe the bug
Confirmation Email was in German. None of the other ones have been. I assume it was because the one who was booking is German?

Expected behavior
In my selected language, English.

Actual behavior
The appointment confirmation was in German.

Screenshots
Scheduler's email name and email removed.
Image

This is because we send emails in the logged in user's language of choice. (Which isn't saved in the db, it's just from the accept-languages header.)

We'll want to:

  1. Add a language field to the subscriber model in prep for subscriber-subscriber interactions (not implemented yet.)
  2. Fill in the language field with english by default.
  3. Add an override for the l10n middleware so we can specify a locale manually
  4. Override any emails to subscribers with the subscriber's saved language.