It is currently impossible to use Translator:FormatByKey
to format an integer with thousands separators. The wiki has a specification for numbers with decimal places, but not integers.
Why this is an issue
This comes a lot when trying to communicate large discrete values to the user. For example, money is my game does not have cents, so I do not wish to show decimal places. However, players may have large amounts of money, so I do want comma separated values.
Preferred solution
My preferred solution is that the {1:num}
specifier allow the number of decimals to be specified, since 2 decimal places feels very hard-coded. This has the additional benefit of solving the issue where more precise decimal places may be displayed to the user.
Why it matters
This will help with translating my game to other languages. Otherwise, I’m causing a regression in the way numbers are displayed to users.