diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-06-26 21:43:41 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-06-26 21:43:41 +0800 |
commit | 3c5cf8b4ef7de96564184531d640b9191fb66fac (patch) | |
tree | 07d9cd231c5ca66861d17df1a02574f874a8b908 /server/src | |
parent | ce7e5bab967e1ef4e9567d05d688aec5d7cb5afd (diff) | |
download | lua-language-server-3c5cf8b4ef7de96564184531d640b9191fb66fac.zip |
翻译
Diffstat (limited to 'server/src')
-rw-r--r-- | server/src/core/completion.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/src/core/completion.lua b/server/src/core/completion.lua index 3575622e..a0a7fb82 100644 --- a/server/src/core/completion.lua +++ b/server/src/core/completion.lua @@ -6,6 +6,7 @@ local sourceMgr = require 'vm.source' local config = require 'config' local matchKey = require 'core.matchKey' local parser = require 'parser' +local lang = require 'language' local State local CompletionItemKind = { @@ -123,7 +124,7 @@ local function getDetail(value) local func = value:getFunction() local overLoads = func and func:getEmmyOverLoads() if overLoads then - detals[#detals+1] = ('(%d 个原型)'):format(#overLoads + 1) + detals[#detals+1] = lang.script('HOVER_MULTI_PROTOTYPE', #overLoads + 1) end end if #detals == 0 then |