in my flutter app, I've implemented localization using .arb
files. in my case what I want to implement is something like this:
"arrangement_index": "{value}{value == 1? 'st' : 'nd'}",
"@arrangement_index": {
"placeholders": {
"value": {
"type": "int"
}
}
}
so, with the generated translations, if I use:
AppLocalizations.of(context)!.arrangement_index(1)
I should get: 1st
AppLocalizations.of(context)!.arrangement_index(2)
I should get: 2nd
this approach is not working, how can I get such a functionality?