summaryrefslogtreecommitdiff
path: root/script/provider
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-11-23 11:56:57 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-11-23 11:56:57 +0800
commitbcee498fa7cf6410f4cc32d23e5bd39fa09b376b (patch)
treeb01e2a48db21548b07750d666b21decf8d543174 /script/provider
parentf4dd8efdb26e142bad37eb5f2e4bf7e13a0f17cc (diff)
downloadlua-language-server-bcee498fa7cf6410f4cc32d23e5bd39fa09b376b.zip
load locale from initialize info
Diffstat (limited to 'script/provider')
-rw-r--r--script/provider/client.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/script/provider/client.lua b/script/provider/client.lua
index c1b16f0f..b9752b66 100644
--- a/script/provider/client.lua
+++ b/script/provider/client.lua
@@ -1,5 +1,6 @@
local nonil = require 'without-check-nil'
local util = require 'utility'
+local lang = require 'language'
local m = {}
@@ -13,6 +14,7 @@ end
function m.init(t)
log.debug('Client init', util.dump(t))
m.info = t
+ lang(t.locale)
end
return m