From 3c5cf8b4ef7de96564184531d640b9191fb66fac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Wed, 26 Jun 2019 21:43:41 +0800 Subject: =?UTF-8?q?=E7=BF=BB=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/core/completion.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'server/src') 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 -- cgit v1.2.3