We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hiho!
Formatting with plurals is a great tool 👍 But at the moment it's not possible to leave an empty output.
Example: 'hours' => '{ 0, plural, zero {}, one {1 Stunde}, other {# Stunden} }'
'hours' => '{ 0, plural, zero {}, one {1 Stunde}, other {# Stunden} }'
Output for {{@hours,0 | format}} is: }, one {1 Stunde
{{@hours,0 | format}}
Changing line 974 in base.php from '(?:\s*\{\s*(?<data>.+?)\s*\})/', to '(?:\s*\{\s*(?<data>.*?)\s*\})/',
'(?:\s*\{\s*(?<data>.+?)\s*\})/',
'(?:\s*\{\s*(?<data>.*?)\s*\})/',
fixes my problem, but I'm not sure, if this introduces other problems in other places and code :)
Maybe you'd like to look into that. Thanks!
The text was updated successfully, but these errors were encountered:
d03a6f7
No branches or pull requests
Hiho!
Formatting with plurals is a great tool 👍
But at the moment it's not possible to leave an empty output.
Example:
'hours' => '{ 0, plural, zero {}, one {1 Stunde}, other {# Stunden} }'
Output for
{{@hours,0 | format}}
is:}, one {1 Stunde
Changing line 974 in base.php from
'(?:\s*\{\s*(?<data>.+?)\s*\})/',
to
'(?:\s*\{\s*(?<data>.*?)\s*\})/',
fixes my problem, but I'm not sure, if this introduces other problems in other places and code :)
Maybe you'd like to look into that. Thanks!
The text was updated successfully, but these errors were encountered: