You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
with 0 now acting as kind of a none key, I wonder if there could be an equivalent all in the spec for the cases where you’re showing {count} of {total} and count === total . Based on our conversation, I see how that’s suited for an if statement and probably not a true pluralzation context, but it would be sweet if this could also be somehow accounted for since it’s another variation over the string that we use to have :thinking_face:
It's interesting. Not sure I'd be interested in doing that right now, given that it's niche / the first time I've heard about it.
I'll log a ticket all the same so we can consider it.
The 0 and 1 cases were more of a no-brainer, since it brings us closer to the CLDR spec, while this would be us inventing new conventions.
Slack Thread
Chema Balsas [2023-01-30 02:48PM UTC]
with 0 now acting as kind of a
none
key, I wonder if there could be an equivalentall
in the spec for the cases where you’re showing{count} of {total}
andcount === total
. Based on our conversation, I see how that’s suited for an if statement and probably not a true pluralzation context, but it would be sweet if this could also be somehow accounted for since it’s another variation over the string that we use to have :thinking_face:Michael Overmeyer [2023-01-30 02:50PM UTC]
So the string would change to
Cancel all orders?
Instead ofCancel 192 orders?
Chema Balsas [2023-01-30 03:19PM UTC]
exactly!
Chema Balsas [2023-01-30 03:19PM UTC]
or to
all orders cancelled
from4 of 8 orders cancelled
Chema Balsas [2023-01-30 03:22PM UTC]
I didn’t see this in the spec on a quick search (but I’m not familiar with it). This requiring 2 vars, I guess it could work like this:
technically this would just hide the
if
, but it also keeps all the strings closer together (by meaning, if not semantically)Michael Overmeyer [2023-01-30 03:40PM UTC]
It's interesting. Not sure I'd be interested in doing that right now, given that it's niche / the first time I've heard about it.
I'll log a ticket all the same so we can consider it.
The
0
and1
cases were more of a no-brainer, since it brings us closer to the CLDR spec, while this would be us inventing new conventions.Chema Balsas [2023-01-30 03:46PM UTC]
👍
The text was updated successfully, but these errors were encountered: