mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-12 19:44:05 +09:00
modularised lang
This commit is contained in:
@@ -4,6 +4,7 @@ import net.torvald.CSVFetcher
|
||||
import net.torvald.terrarum.itemproperties.InventoryItem
|
||||
import net.torvald.terrarum.itemproperties.ItemCodex
|
||||
import net.torvald.terrarum.blockproperties.BlockCodex
|
||||
import net.torvald.terrarum.langpack.Lang
|
||||
import org.apache.commons.csv.CSVFormat
|
||||
import org.apache.commons.csv.CSVParser
|
||||
import java.io.File
|
||||
@@ -160,4 +161,13 @@ object ModMgr {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
object GameLanguageLoader {
|
||||
val langPath = "locales/"
|
||||
|
||||
@JvmStatic operator fun invoke(module: String) {
|
||||
println("arstneitars")
|
||||
Lang.load(getPath(module, langPath))
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user