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

feat: Seed support for plural units #3933

Merged

Conversation

Choromanski
Copy link
Contributor

@Choromanski Choromanski commented Jul 23, 2024

What type of PR is this?

  • feature
  • l10n

What this PR does / why we need it:

This PR allows the seeder to import plural names and plural abbreviation for units.
This allows for new user have cleaner ingredient lists without having to do any configuration.

Which issue(s) this PR fixes:

N/A

Special notes for your reviewer:

In commit 21216a6 I made some changes I'd be happy to revert:

  • changed the abbreviation from cup to c
  • Added the units "bunch", "pack", and "pinch"

I modified one of the crowdin files, not sure if there is anything additional I need to do.

I would like to also do the same with food seeder but that would require restructuring the local files and I'm unsure if that would cause problems with crowdin.

Testing

Ran a fresh install and all of the unit data was seeded properly:

image

@Choromanski Choromanski marked this pull request as ready for review July 23, 2024 20:08
@michael-genson michael-genson enabled auto-merge (squash) August 20, 2024 14:26
Copy link
Collaborator

@michael-genson michael-genson left a comment

Choose a reason for hiding this comment

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

Looks great, thanks!

@michael-genson michael-genson merged commit 2cd1e0a into mealie-recipes:mealie-next Aug 20, 2024
11 checks passed
@Choromanski
Copy link
Contributor Author

@michael-genson I would like to also do the same with food seeder but that would require restructuring the local files and I'm unsure if that would cause problems with crowdin.

@michael-genson
Copy link
Collaborator

@Choromanski Hey sorry, meant to get back to you on this. In theory as long as they keys are the same, the translations should copy over. We should be able to fix it manually if not

boc-the-git pushed a commit to boc-the-git/mealie that referenced this pull request Sep 28, 2024
boc-the-git pushed a commit to boc-the-git/mealie that referenced this pull request Sep 28, 2024
@Choromanski Choromanski deleted the feature/seed-plurals branch October 23, 2024 02:32
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.

3 participants