diff options
Diffstat (limited to 'server-beta/src/language.lua')
-rw-r--r-- | server-beta/src/language.lua | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/server-beta/src/language.lua b/server-beta/src/language.lua index 3294c5b2..d1a4b4cf 100644 --- a/server-beta/src/language.lua +++ b/server-beta/src/language.lua @@ -1,5 +1,6 @@ -local fs = require 'bee.filesystem' -local lni = require 'lni' +local fs = require 'bee.filesystem' +local lni = require 'lni' +local util = require 'utility' local function supportLanguage() local list = {} @@ -33,7 +34,7 @@ end local function loadFileByLanguage(name, language) local path = ROOT / 'locale' / language / (name .. '.lni') - local buf = io.load(path) + local buf = util.loadFile(path:string()) if not buf then return {} end |