Is there a way to pass an array of String to a resource bundle to localize an unknown number of argument for a given key?
I have:
my.message=List of retired products: {0}
getValue(bundle, "my.message", list.toArray());
With this, only the first item in the array is showed in the resulting message.
No, there are no builtin facilities for that in the
MessageFormatAPI. You need to build a string with the values yourself. E.g.: