-
Notifications
You must be signed in to change notification settings - Fork 77
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
Can't use boolean options on number formatting #559
Comments
Yup. Our syntax doesn't support booleans - https://github.com/projectfluent/fluent/blob/master/spec/fluent.ebnf#L75 @stasm, @Pike - do you remember how we wanted to workaround it for those cases? Was it supposed to be num->bool, or string->bool ( @eemeli - FYI in context of MF2.0 planning :) |
I'm new here so sorry if the question is stupid, but couldn't a |
IIRC, the core problem with "logical" types is that once they're there, you have to figure out what to do with them. That's affecting boolean, but also null and undefined (IIRC, there's a fluent issue on those). If those logical types were fluent values, they'd need a humane-localized-readable representation. Which is probably not great, or at least a can of worms. Now, for As for the options for |
I currently have the following rule:
As per the docs.
However, this just doesn't work, the rule does not apply and displays the untranslated fallback. It looks like the functions don't support boolean values, every other parameter that is a string or number works. If I pass
useGrouping: 0
it works, which reinforces that.The text was updated successfully, but these errors were encountered: