Skip to content

Commit

Permalink
Merge pull request #294 from armanbilge/en_US
Browse files Browse the repository at this point in the history
Create `locales-minimal-en_US-db` module
  • Loading branch information
cquiroz authored Aug 5, 2021
2 parents 6bbbcca + e8d7300 commit 8f38a8e
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
run: sbt ++${{ matrix.scala }} test

- name: Compress target directories
run: tar cf targets.tar demo/target macroUtils/target localesFullCurrenciesDb/target testSuite/jvm/target core/js/target testSuite/js/target localesFullDb/target core/jvm/target localesMinimalEnDb/target target project/target
run: tar cf targets.tar demo/target macroUtils/target localesFullCurrenciesDb/target testSuite/jvm/target localesMinimalEnUSDb/target core/js/target testSuite/js/target localesFullDb/target core/jvm/target localesMinimalEnDb/target target project/target

- name: Upload target directories
uses: actions/upload-artifact@v2
Expand Down
20 changes: 20 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ lazy val scalajs_locales: Project = project
localesFullDb,
localesFullCurrenciesDb,
localesMinimalEnDb,
localesMinimalEnUSDb,
demo
)

Expand Down Expand Up @@ -208,6 +209,25 @@ lazy val localesMinimalEnDb = project
.cross(CrossVersion.for3Use2_13)
)

lazy val localesMinimalEnUSDb = project
.in(file("localesMinimalEnUSDb"))
.settings(commonSettings: _*)
.configure(_.enablePlugins(LocalesPlugin))
.configure(_.enablePlugins(ScalaJSPlugin))
.settings(
name := "locales-minimal-en_US-db",
cldrVersion := CLDRVersion.Version(cldrDbVersion),
localesFilter := LocalesFilter.Selection(List("en_US")),
nsFilter := NumberingSystemFilter.Minimal,
calendarFilter := CalendarFilter.Minimal,
currencyFilter := CurrencyFilter.None,
supportDateTimeFormats := true,
supportNumberFormats := true,
supportISOCodes := false,
libraryDependencies += ("org.portable-scala" %%% "portable-scala-reflect" % "1.1.1")
.cross(CrossVersion.for3Use2_13)
)

lazy val testSuite = crossProject(JVMPlatform, JSPlatform)
.in(file("testSuite"))
.settings(commonSettings: _*)
Expand Down

0 comments on commit 8f38a8e

Please sign in to comment.