monorepo icon indicating copy to clipboard operation
monorepo copied to clipboard

FEAT: preferredLocale to Profile Model for email localization

Open myniqx opened this issue 7 months ago • 0 comments

Is your feature request related to a problem? Please describe.

when strapi sends e-mail, it couldnt know the locale of reciever. so emails can only one language. but if we keep users preferedLocales in Profile model, we can easily get them while we send email and send email with that locale.

Describe the solution you'd like

  • [ ] add a column to Profile model called prefferedLocale
  • [ ] set the first time when profile created (check 'packages\services\src\api\register.ts' line 27, you can add preferredLocale value)
  • [ ] update that value when users change their locale (check packages\ui\src\components\LocaleSwitcher\LocaleSwitcher.tsx)

myniqx avatar Jul 10 '24 07:07 myniqx