Closed suesitran closed 1 year ago
Hi @suesitran,
It looks like the metadata for the placeholder that includes decimalDigits
is not set up correctly within the arb
file.
Here's an example that should work:
"percentage":"({number})",
"@percentage": {
"placeholders": {
"number": {
"type": "double",
"format": "decimalPercentPattern",
"optionalParameters": {
"decimalDigits": 2
}
}
}
}
Great. Thank you 🙏
I notice this issue while working on my app. Below is the code I defined in my
intl_en.arb
, in which I use formatdecimalPercentPattern
, with optionalParameters 'decimalDigits'However, after I run command
dart run intl_utils:generate
, the generated string does not includedecimalDigits
I'm using
intl: ^0.18.1
, andintl_utils: ^2.8.5