Skip to content

Commit

Permalink
test(core): Make sure LANG env var gets set to match document.language
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Jun 13, 2024
1 parent b28cafd commit 35cef21
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions spec/languages_spec.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
SILE = require("core.sile")

describe("Language module", function ()

it("should set env locale", function ()
SILE.call("language", { main = "tr" })
local syslang = os.getenv("LANG")
assert.is.equal("tr", syslang)
end)

describe("Norwegian", function ()
local hyphenate = SILE.showHyphenationPoints

Expand Down

0 comments on commit 35cef21

Please sign in to comment.