Custom plural for units #7802
Makhuta
started this conversation in
Feature Request
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
First Check
Please provide a concise description of the problem that would be addressed by this feature.
There are multiple languages in which Mealie can be used for me and mostly my familly we would like to use it in Czech but plural for units uses mainly English type of format for which it works fine but in Czech there are mostly different plural based on the number of items for example: 1, 2-4, 5=<. Other languages might have it simillar.
Please provide a concise description of the feature that would resolve your issue.
Have some sort of field for unit plural where could some formulas be written separated with semicolons for example:
QUANTITY == 3; QUANTITY == 4; QUANTITY >= 5
and then the plurals will be written using the same pattern:
PLURAL_E_3; PLURAL_E_4; PLURAL_EG_5
The default to already existing units could just be:
QUANTITY > 1
and it wouldn't change a thing for people that already spend time configuring their units.
Please consider and list out some caveats or tradeoffs made in your design decision
The only tradeoff I could think about is that the UI will have one more field but this could be solved by adding some "Advanced" config that will when unchecked not show this (for possible future more) feature and still use the default I mentioned earlier
Additional Information
Beta Was this translation helpful? Give feedback.
All reactions