Closed imaspeer closed 6 years ago
I've never needed this, but it seems useful. 👍 I've just released a new version with support for some options (see README), among them setIntlSupport
and setBiDiSupport
. I have not added a way of adding formatters, because I overlooked that in your issue until now, to be honest. Do you have a need for custom formatters?
MessageFormat requires calling
setIntlSupport(true)
before the date, time, and number formats can be used. Currently the translate compiler does not call this function and does not expose it, which makes it impossible to use the aforementioned formats.Possible solutions :
Expose the internal MessageFormat object's
setIntlSupport
method (it may be useful to expose some other methods as well, such assetBiDiSupport
oraddFormatters
)Call the internal MessageFormat object's
setIntlSupport
in the constructor, and optionally provide a way for the user to control this behavior (e.g. a constructor parameter)