mealie-recipes / mealie

Mealie is a self hosted recipe manager and meal planner with a RestAPI backend and a reactive frontend application built in Vue for a pleasant user experience for the whole family. Easily add recipes into your database by providing the url and mealie will automatically import the relevant data or add a family recipe with the UI editor
https://docs.mealie.io
GNU Affero General Public License v3.0
5.62k stars 613 forks source link

feat: Internationalize sent emails #3818

Open p0lycarpio opened 3 days ago

p0lycarpio commented 3 days ago

What type of PR is this?

(REQUIRED)

What this PR does / why we need it:

(REQUIRED)

This PR adds internationalization to Mealie on emails sent by Mealie depending on the language of the user who triggers the action via the frontend.

Which issue(s) this PR fixes:

(REQUIRED)

N/A

Special notes for your reviewer:

The user's language is retrieved using the accept_language header sent by the front. If the language is not specified or the JSON file does not exist, Mealie uses the en-US locale by default.

Contributors will be able to translate english strings from Crowdin after the merge.

Testing

(fill-in or delete this section)

Kuchenpirat commented 3 days ago

Hey, thanks for your work on this.

Before I have time to look at it a first note, please add new translation only to the en-us file, the rest will be handled by crowdin.