diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-11-05 10:51:19 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-11-05 10:51:19 +0800 |
commit | d3dc2e60f29f91060c83b3189280f96ec78e13ea (patch) | |
tree | e8e28fc40b381c7d0d79fbe4bc20670b7d0f8448 /script-beta/core/hover | |
parent | f237cc6a46551c5297f011fa5502fbe2dbc8201c (diff) | |
download | lua-language-server-d3dc2e60f29f91060c83b3189280f96ec78e13ea.zip |
加一些翻译
Diffstat (limited to 'script-beta/core/hover')
-rw-r--r-- | script-beta/core/hover/label.lua | 3 | ||||
-rw-r--r-- | script-beta/core/hover/table.lua | 3 |
2 files changed, 3 insertions, 3 deletions
diff --git a/script-beta/core/hover/label.lua b/script-beta/core/hover/label.lua index b96421b1..24779c41 100644 --- a/script-beta/core/hover/label.lua +++ b/script-beta/core/hover/label.lua @@ -36,8 +36,7 @@ local function asDocTypeName(source) end if doc.type == 'doc.alias.name' then local extends = doc.parent.extends - -- TODO - return '展开为 ' .. vm.getInferType(extends) + return lang.script('HOVER_EXTENDS', vm.getInferType(extends)) end end end diff --git a/script-beta/core/hover/table.lua b/script-beta/core/hover/table.lua index 0da2a18b..145f3c08 100644 --- a/script-beta/core/hover/table.lua +++ b/script-beta/core/hover/table.lua @@ -2,6 +2,7 @@ local vm = require 'vm' local util = require 'utility' local guide = require 'parser.guide' local config = require 'config' +local lang = require 'language' local function getKey(src) if src.type == 'library' then @@ -275,9 +276,9 @@ return function (source) else result = buildAsHash(classes, literals) end - -- TODO if timeUp then result = '\n--出于性能考虑,已禁用了部分类型推断。\n' .. result + result = ('\n--%s\n%s'):format(lang.script.HOVER_TABLE_TIME_UP, result) end return result end |