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
While running the following test on a scalaJS only module of mine:
import java.text.SimpleDateFormat
import java.util.{Date, Locale}
import org.scalatest.flatspec.AnyFlatSpec
class localeTest extends AnyFlatSpec {
"A date" can "be formatted according to locale" in {
val pattern = "dd MMMM yyyy"
val simpleDateFormat = new SimpleDateFormat(pattern, Locale.ENGLISH)
assert(simpleDateFormat.format(new Date(0L)) === "01 January 1970")
}
}
I am not getting a localized month name
"01 [0001] 1970" did not equal "01 [January] 1970"
even if the CLDR data seem in place, data.scala is written and its object _en contains the names of the months.
While running the following test on a scalaJS only module of mine:
I am not getting a localized month name
even if the CLDR data seem in place,
data.scala
is written and its object_en
contains the names of the months.In order to abstract from my system I have tried the following snippet
https://scastie.scala-lang.org/mcallisto/gdksVpgMRhyKk2ct2lFBww/6
and it fails in a similar fashion.
The text was updated successfully, but these errors were encountered: