Skip to content

Commit

Permalink
feat: Change i18n test targets binding point (test to lib)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShapeLayer committed Aug 2, 2024
1 parent fac409f commit 33292b9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 6 additions & 0 deletions lib/i18n.typ
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
#import "./i18n/en-us.typ"
#import "./i18n/ko-kr.typ"

#let supports = (
// Insert locales here
("en-us", en-us),
("ko-kr", ko-kr)
)
6 changes: 1 addition & 5 deletions tests/i18n/test.typ
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,7 @@
#let base__make-prob-meta-keys = base.make-prob-meta.keys()
#let base__make-prob-overview-keys = base.make-prob-overview.keys()

#for (locale, content) in (
// Insert locales here
("en-us", i18n.en-us),
("ko-kr", i18n.ko-kr)
) {
#for (locale, content) in (i18n.supports) {
assert(
base__make-prob-meta-keys == content.make-prob-meta.keys(),
message: "The content of locale " + locale + " is incomplete.",
Expand Down

0 comments on commit 33292b9

Please sign in to comment.