Add embedded KJV support

This commit is contained in:
2026-06-14 07:46:21 -05:00
parent 2d78d8e5c0
commit 544062902b
8 changed files with 31857 additions and 3 deletions
+11
View File
@@ -0,0 +1,11 @@
import std/os
template embeddedTranslationData*(name: static[string]): string =
const dataRoot = currentSourcePath().parentDir.parentDir / "data"
const privatePath = dataRoot / "private" / (name & ".tsv")
const publicPath = dataRoot / "public" / (name & ".tsv")
when fileExists(privatePath):
staticRead(privatePath)
else:
staticRead(publicPath)