diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-07-02 14:04:48 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-07-02 14:04:48 +0800 |
commit | ea3ad89fb19967e7d268111002e63e730744c790 (patch) | |
tree | 127f19df6ab6c3defd0f03b52f75e984d6d119ca /script/core | |
parent | 11ec7319ae4222d9225705a20037b50a2b20b7f7 (diff) | |
download | lua-language-server-ea3ad89fb19967e7d268111002e63e730744c790.zip |
#186 漏了翻译
Diffstat (limited to 'script/core')
-rw-r--r-- | script/core/hover/hover.lua | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/script/core/hover/hover.lua b/script/core/hover/hover.lua index fdf9d26f..c7f10eb5 100644 --- a/script/core/hover/hover.lua +++ b/script/core/hover/hover.lua @@ -3,6 +3,7 @@ local getFunctionHover = require 'core.hover.function' local getFunctionHoverAsLib = require 'core.hover.lib_function' local getFunctionHoverAsEmmy = require 'core.hover.emmy_function' local buildValueName = require 'core.hover.name' +local lang = require 'language' local OriginTypes = { ['any'] = true, @@ -321,12 +322,12 @@ local function hoverAsString(source) if len == charLen then return { description = ([[ -%d 个字节 +%s ------------------ ```txt %s -```]]):format(len, str), +```]]):format(lang.script('HOVER_STRING_BYTES', len), str), range = { start = source.start, finish = source.finish, @@ -335,12 +336,12 @@ local function hoverAsString(source) else return { description = ([[ -%d 个字节,%d 个字符 +%s ------------------ ```txt %s -```]]):format(len, charLen, str), +```]]):format(lang.script('HOVER_STRING_CHARACTERS', len, charLen), str), range = { start = source.start, finish = source.finish, |