You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Maybe this could be documented in README, I imagine this question might come up. Let's say as a user, I'd like to be able to use this library in pure code to format a DateTime as String. You can't currently do that—the DateTimeFormat.new constructor returns in Effect because if none of the Locales passed in are supported it will fall back to the host machine's default locale. Same applies for other service constructors.
For example, "yue" is the language tag for Cantonese, but at time of writing the DateTimeFormat implementation in Chrome (115) does not support it, so the locale resolves to "en-US" on my machine.
Maybe this could be documented in
README
, I imagine this question might come up. Let's say as a user, I'd like to be able to use this library in pure code to format aDateTime
asString
. You can't currently do that—theDateTimeFormat.new
constructor returns inEffect
because if none of theLocale
s passed in are supported it will fall back to the host machine's default locale. Same applies for other service constructors.For example,
"yue"
is the language tag for Cantonese, but at time of writing theDateTimeFormat
implementation in Chrome (115) does not support it, so thelocale
resolves to"en-US"
on my machine.The text was updated successfully, but these errors were encountered: