Any plans for a standard multiplatform `Locale` ye...
# stdlib
m
Any plans for a standard multiplatform
Locale
yet? It would be needed for a multiplatform time library to support formatting 🙂
s
Why would you need a
Locale
that is not coupled to the library?
m
A
Locale
has nothing to do with time? It's a basic building block like Java's Locale or ObjC's NSLocale.
Let's say you have a
DateFormatter
in a time lib. It would need a
Locale
to know what language to format the date in.
s
Yes but in Java (or ObjC afaik) the
DataFormatter
is also in the std. Not sure if it's also used in other APIs in Java.
m
It is. But JetBrains wants to make its multiplatform time library standalone, so adding
Locale
to that wouldn't make sense.
s
I think I've never used
Locale
outside of the Java Data apis, maybe I just don't understand your use case properly.
m
😮
Locale
can be used for all kinds of i18n-related tasks like translations, formatting, locale-dependent resource loading etc.
1
c
And don't forget currency
m
And Country
I guess an i18n library is needed. And then datetime formatting can use that
👍 2