ocpsoft / prettytime

Social Style Date and Time Formatting for Java
http://ocpsoft.org/prettytime/
Apache License 2.0
1.29k stars 253 forks source link

Not working setLocale method #180

Closed BondarenkoArtur closed 4 years ago

BondarenkoArtur commented 4 years ago

I'm needed to change Locale in a runtime, so I'm trying to change locale for instance of pretty time, but it seems that language is not updated. As I can see, locale is changed but units.values is not. Version prettytime:4.0.2.Final

val prettyTime = PrettyTime()
prettyTime.locale = Locale.FRANCE
prettyTime.format(DateTime().toDate())

I've tried Locale.FRENCH also...

image

If I'm creating instance with locale, it works well

image

BondarenkoArtur commented 4 years ago

I wasn't really expecting that this one will be fixed. But thanks ;) When approximately you think to have new release build?