summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevSebi <52174534+LPSebi@users.noreply.github.com>2022-04-12 17:30:24 +0200
committer最萌小汐 <sumneko@hotmail.com>2022-04-12 23:33:49 +0800
commitf760dc359b389c20a0d48bef463d14800e67894c (patch)
tree4e1c4dd796cd4009f2d9015e249d8ec39642033f
parent5c99a5667ddd19839ad7e411e7f093ea6107a9c0 (diff)
downloadlua-language-server-f760dc359b389c20a0d48bef463d14800e67894c.zip
fix lang
-rw-r--r--locale/en-us/script.lua5
-rw-r--r--script/provider/provider.lua4
2 files changed, 7 insertions, 2 deletions
diff --git a/locale/en-us/script.lua b/locale/en-us/script.lua
index 98be9bcb..f16235b4 100644
--- a/locale/en-us/script.lua
+++ b/locale/en-us/script.lua
@@ -464,6 +464,10 @@ This icon is a cat,
Not a dog nor a fox!
↓↓↓
]]
+WINDOW_LUA_STATUS_DIAGNOSIS_TITLE=
+'Perform workspace diagnosis'
+WINDOW_LUA_STATUS_DIAGNOSIS_MSG =
+'Do you want to perform workspace diagnosis?'
WINDOW_APPLY_SETTING =
'Apply setting'
WINDOW_CHECK_SEMANTIC =
@@ -533,3 +537,4 @@ CLI_CHECK_SUCCESS =
'Diagnosis completed, no problems found'
CLI_CHECK_RESULTS =
'Diagnosis complete, {} problems found, see {}'
+
diff --git a/script/provider/provider.lua b/script/provider/provider.lua
index 18783ccf..35b5147b 100644
--- a/script/provider/provider.lua
+++ b/script/provider/provider.lua
@@ -999,8 +999,8 @@ m.register '$/status/click' {
---@async
function ()
-- TODO: translate
- local titleDiagnostic = '进行工作区诊断'
- local result = client.awaitRequestMessage('Info', 'xxx', {
+ local titleDiagnostic = lang.script.WINDOW_LUA_STATUS_DIAGNOSIS_TITLE
+ local result = client.awaitRequestMessage('Info', lang.script.WINDOW_LUA_STATUS_DIAGNOSIS_MSG, {
titleDiagnostic,
})
if not result then