summaryrefslogtreecommitdiff
path: root/locale
diff options
context:
space:
mode:
authorBruno Carvalho <b.camara@live.com>2024-04-23 13:28:07 -0300
committerBruno Carvalho <b.camara@live.com>2024-04-23 13:28:07 -0300
commita8c0929405a02e54749d3d59ce4dad7bc3e0a863 (patch)
tree36e2be9dd50eb5a958c8803193b2be133a74c3d9 /locale
parent6b5e19597d88a219aac73cbccd6f88a4213e07aa (diff)
downloadlua-language-server-a8c0929405a02e54749d3d59ce4dad7bc3e0a863.zip
Add globalsRegex to diagnostics
Improve checkIsUndefinedGlobal to avoid unecessary checks and tables
Diffstat (limited to 'locale')
-rw-r--r--locale/en-us/setting.lua2
-rw-r--r--locale/pt-br/setting.lua2
-rw-r--r--locale/zh-cn/setting.lua2
-rw-r--r--locale/zh-tw/setting.lua2
4 files changed, 8 insertions, 0 deletions
diff --git a/locale/en-us/setting.lua b/locale/en-us/setting.lua
index 9ef46b86..2352a9e4 100644
--- a/locale/en-us/setting.lua
+++ b/locale/en-us/setting.lua
@@ -48,6 +48,8 @@ config.diagnostics.disable =
"Disabled diagnostic (Use code in hover brackets)."
config.diagnostics.globals =
"Defined global variables."
+config.diagnostics.globalsRegex =
+"Find defined global variables using regex."
config.diagnostics.severity =
[[
Modify the diagnostic severity.
diff --git a/locale/pt-br/setting.lua b/locale/pt-br/setting.lua
index 6ececcd3..a5bc8e06 100644
--- a/locale/pt-br/setting.lua
+++ b/locale/pt-br/setting.lua
@@ -48,6 +48,8 @@ config.diagnostics.disable = -- TODO: need translate!
"Disabled diagnostic (Use code in hover brackets)."
config.diagnostics.globals = -- TODO: need translate!
"Defined global variables."
+config.diagnostics.globalsRegex = -- TODO: need translate!
+"Find defined global variables using regex."
config.diagnostics.severity = -- TODO: need translate!
[[
Modify the diagnostic severity.
diff --git a/locale/zh-cn/setting.lua b/locale/zh-cn/setting.lua
index 78e7fb68..7aba522e 100644
--- a/locale/zh-cn/setting.lua
+++ b/locale/zh-cn/setting.lua
@@ -48,6 +48,8 @@ config.diagnostics.disable =
"禁用的诊断(使用浮框括号内的代码)。"
config.diagnostics.globals =
"已定义的全局变量。"
+config.diagnostics.globalsRegex = -- TODO: need translate!
+"Find defined global variables using regex."
config.diagnostics.severity =
[[
修改诊断等级。
diff --git a/locale/zh-tw/setting.lua b/locale/zh-tw/setting.lua
index 2b43e954..aeabb63e 100644
--- a/locale/zh-tw/setting.lua
+++ b/locale/zh-tw/setting.lua
@@ -48,6 +48,8 @@ config.diagnostics.disable =
"停用的診斷(使用浮框括號內的程式碼)。"
config.diagnostics.globals =
"已定義的全域變數。"
+config.diagnostics.globalsRegex = -- TODO: need translate!
+"Find defined global variables using regex."
config.diagnostics.severity =
[[
修改診斷等級。