summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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