java - Configure Play framework messages to not format numbers -


in play framework, can define files have key=value list of text.

for instance

myerror.number=the number {0} not double 

which can using: messages.get("myerror.number", 5);

and say:

the number 5 not double

when going above 1000 though, output format group separator, this: "1,000"

how can correct settings not this? no separators @ whole numbers?

in accordance documentation play uses messageformat class formatting , generates output based on provided locale object. hence, thousand separator used in example.

the simplest solution pass string value instead number.

messages.get("myerror.number", string.valueof(5)); 

play doesn't provide global configuration purpose.