Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Missing Translations #3494

Merged

Conversation

michael-genson
Copy link
Collaborator

What type of PR is this?

(REQUIRED)

  • bug

What this PR does / why we need it:

(REQUIRED)

This PR adds missing translation files, and inserts new translation logic for new recipes. The missing dateTimeFormat JSON files led to date-related strings not being translated (see #3490).

Which issue(s) this PR fixes:

(REQUIRED)

Fixes #3490

Special notes for your reviewer:

(fill-in or delete this section)

The codegen for locales seems to be broken, so I had to add the file defs manually. Maybe it works when you have the Crowdin API key, but it seems broken even without it. Either way, we were missing files, which I think had to be added manually anyway.

Additionally, the new recipe text might get replaced at some point (see: #2012), but at least for now we can translate what we have.

Testing

(fill-in or delete this section)

Confirmed on #3490 that it looks right for one of the missing languages (Slovenian), and confirmed the new recipe text works as expected.

Copy link
Collaborator

@boc-the-git boc-the-git left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀

@boc-the-git boc-the-git enabled auto-merge (squash) April 19, 2024 10:31
@boc-the-git boc-the-git merged commit b38c19c into mealie-recipes:mealie-next Apr 19, 2024
9 of 10 checks passed
@Glandos
Copy link

Glandos commented Apr 19, 2024

As a translator, it seems very hard to translate "1 Cup Flour". My question is: is it an example of a recipe note that we can localize using our country most favorite units?

@michael-genson michael-genson deleted the fix/missing-translations branch April 19, 2024 14:33
@michael-genson
Copy link
Collaborator Author

Yes, I probably should've named it something more general. It's basically the default ingredient on all new recipes, so any "basic ingredient" works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] - Some English text is hardcoded in the app and not translatable
3 participants