summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-06-28 21:25:21 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-06-28 21:25:21 +0800
commit2548e6d5f5744d38230866e07c1eaec1c16a1302 (patch)
tree19bf1e4d7a41eb898d15ff5b1638f6bbb8515f97
parentdc8d3adcd83a8d9bc33b8b783fce3f2ad76be917 (diff)
downloadlua-language-server-2548e6d5f5744d38230866e07c1eaec1c16a1302.zip
update locale
-rw-r--r--locale/en-us/script.lua14
-rw-r--r--locale/en-us/setting.lua8
-rw-r--r--locale/pt-br/script.lua12
-rw-r--r--locale/pt-br/setting.lua8
-rw-r--r--locale/zh-cn/setting.lua8
-rw-r--r--locale/zh-tw/script.lua12
-rw-r--r--locale/zh-tw/setting.lua8
7 files changed, 69 insertions, 1 deletions
diff --git a/locale/en-us/script.lua b/locale/en-us/script.lua
index 53b8f9ab..2607907d 100644
--- a/locale/en-us/script.lua
+++ b/locale/en-us/script.lua
@@ -127,7 +127,19 @@ DIAG_PARAM_TYPE_MISMATCH =
DIAG_UNKNOWN_CAST_VARIABLE =
'Unknown type conversion variable `{}`.'
DIAG_CAST_TYPE_MISMATCH =
-'Cannot convert `{ref}` to `{def}`。'
+'Cannot convert `{def}` to `{ref}`。'
+DIAG_MISSING_RETURN_VALUE =
+'At least {min} return values are required, but here only {rmax} values are returned.'
+DIAG_MISSING_RETURN_VALUE_RANGE =
+'At least {min} return values are required, but here only {rmin} to {rmax} values are returned.'
+DIAG_REDUNDANT_RETURN_VALUE =
+'At most {max} values returned, but the {rmax}th value was returned here.'
+DIAG_REDUNDANT_RETURN_VALUE_RANGE =
+'At most {max} values returned, but {rmin}th to {rmax}th values were returned here.'
+DIAG_MISSING_RETURN =
+'Return value is required here.'
+DIAG_RETURN_TYPE_MISMATCH =
+'The type of the {index} return value is `{def}`, but the actual return is `{ref}`.'
MWS_NOT_SUPPORT =
'{} does not support multi workspace for now, I may need to restart to support the new workspace ...'
diff --git a/locale/en-us/setting.lua b/locale/en-us/setting.lua
index bc7746e0..b2ba86fd 100644
--- a/locale/en-us/setting.lua
+++ b/locale/en-us/setting.lua
@@ -236,6 +236,14 @@ config.hint.arrayIndex.Disable =
'Disable hints of array index.'
config.hint.await =
'If the called function is marked `---@async`, prompt `await` at the call.'
+config.hint.semicolon =
+'If there is no semicolon at the end of the statement, display a virtual semicolon.'
+config.hint.semicolon.All =
+'All statements display virtual semicolons.'
+config.hint.semicolon.SameLine =
+'When two statements are on the same line, display a semicolon between them.'
+config.hint.semicolon.Disable =
+'Disable virtual semicolons.'
config.format.enable =
'Enable code formatter.'
config.format.defaultConfig =
diff --git a/locale/pt-br/script.lua b/locale/pt-br/script.lua
index de84b00d..100da06b 100644
--- a/locale/pt-br/script.lua
+++ b/locale/pt-br/script.lua
@@ -128,6 +128,18 @@ DIAG_UNKNOWN_CAST_VARIABLE = -- TODO: need translate!
'Unknown type conversion variable `{}`.'
DIAG_CAST_TYPE_MISMATCH = -- TODO: need translate!
'Cannot convert `{ref}` to `{def}`。'
+DIAG_MISSING_RETURN_VALUE = -- TODO: need translate!
+'At least {min} return values are required, but here only {rmax} values are returned.'
+DIAG_MISSING_RETURN_VALUE_RANGE = -- TODO: need translate!
+'At least {min} return values are required, but here only {rmin} to {rmax} values are returned.'
+DIAG_REDUNDANT_RETURN_VALUE = -- TODO: need translate!
+'At most {max} values returned, but the {rmax}th value was returned here.'
+DIAG_REDUNDANT_RETURN_VALUE_RANGE = -- TODO: need translate!
+'At most {max} values returned, but {rmin}th to {rmax}th values were returned here.'
+DIAG_MISSING_RETURN = -- TODO: need translate!
+'Return value is required here.'
+DIAG_RETURN_TYPE_MISMATCH = -- TODO: need translate!
+'The type of the {index} return value is `{def}`, but the actual return is `{ref}`.'
MWS_NOT_SUPPORT =
'{} não é suportado múltiplos espaços de trabalho por enquanto, posso precisar reiniciar para estabelecer um novo espaço de trabalho ...'
diff --git a/locale/pt-br/setting.lua b/locale/pt-br/setting.lua
index 30e29893..3a8049af 100644
--- a/locale/pt-br/setting.lua
+++ b/locale/pt-br/setting.lua
@@ -236,6 +236,14 @@ config.hint.arrayIndex.Disable = -- TODO: need translate!
'Disable hints of array index.'
config.hint.await = -- TODO: need translate!
'If the called function is marked `---@async`, prompt `await` at the call.'
+config.hint.semicolon = -- TODO: need translate!
+'If there is no semicolon at the end of the statement, display a virtual semicolon.'
+config.hint.semicolon.All = -- TODO: need translate!
+'All statements display virtual semicolons.'
+config.hint.semicolon.SameLine = -- TODO: need translate!
+'When two statements are on the same line, display a semicolon between them.'
+config.hint.semicolon.Disable = -- TODO: need translate!
+'Disable virtual semicolons.'
config.format.enable = -- TODO: need translate!
'Enable code formatter.'
config.format.defaultConfig = -- TODO: need translate!
diff --git a/locale/zh-cn/setting.lua b/locale/zh-cn/setting.lua
index 004f350d..433be65f 100644
--- a/locale/zh-cn/setting.lua
+++ b/locale/zh-cn/setting.lua
@@ -235,6 +235,14 @@ config.hint.arrayIndex.Disable =
'禁用数组索引提示。'
config.hint.await =
'如果调用的函数被标记为了 `---@async` ,则在调用处提示 `await` 。'
+config.hint.semicolon =
+'若语句尾部没有分号,则显示虚拟分号。'
+config.hint.semicolon.All =
+'所有语句都显示虚拟分号。'
+config.hint.semicolon.SameLine =
+'2个语句在同一行时,在它们之间显示分号。'
+config.hint.semicolon.Disable =
+'禁用虚拟分号。'
config.format.enable =
'启用代码格式化程序。'
config.format.defaultConfig =
diff --git a/locale/zh-tw/script.lua b/locale/zh-tw/script.lua
index df02d094..14716598 100644
--- a/locale/zh-tw/script.lua
+++ b/locale/zh-tw/script.lua
@@ -128,6 +128,18 @@ DIAG_UNKNOWN_CAST_VARIABLE =
'未知的類型轉換變數 `{}`.'
DIAG_CAST_TYPE_MISMATCH =
'不能將 `{ref}` 轉換為 `{def}`。'
+DIAG_MISSING_RETURN_VALUE = -- TODO: need translate!
+'At least {min} return values are required, but here only {rmax} values are returned.'
+DIAG_MISSING_RETURN_VALUE_RANGE = -- TODO: need translate!
+'At least {min} return values are required, but here only {rmin} to {rmax} values are returned.'
+DIAG_REDUNDANT_RETURN_VALUE = -- TODO: need translate!
+'At most {max} values returned, but the {rmax}th value was returned here.'
+DIAG_REDUNDANT_RETURN_VALUE_RANGE = -- TODO: need translate!
+'At most {max} values returned, but {rmin}th to {rmax}th values were returned here.'
+DIAG_MISSING_RETURN = -- TODO: need translate!
+'Return value is required here.'
+DIAG_RETURN_TYPE_MISMATCH = -- TODO: need translate!
+'The type of the {index} return value is `{def}`, but the actual return is `{ref}`.'
MWS_NOT_SUPPORT =
'{} 目前還不支援多工作目錄,我可能需要重新啟動才能支援新的工作目錄...'
diff --git a/locale/zh-tw/setting.lua b/locale/zh-tw/setting.lua
index 108c642d..9369bbcd 100644
--- a/locale/zh-tw/setting.lua
+++ b/locale/zh-tw/setting.lua
@@ -235,6 +235,14 @@ config.hint.arrayIndex.Disable =
'停用陣列索引提示。'
config.hint.await =
'如果呼叫的函數被標記為了 `---@async`,則在呼叫處提示 `await`。'
+config.hint.semicolon = -- TODO: need translate!
+'If there is no semicolon at the end of the statement, display a virtual semicolon.'
+config.hint.semicolon.All = -- TODO: need translate!
+'All statements display virtual semicolons.'
+config.hint.semicolon.SameLine = -- TODO: need translate!
+'When two statements are on the same line, display a semicolon between them.'
+config.hint.semicolon.Disable = -- TODO: need translate!
+'Disable virtual semicolons.'
config.format.enable =
'啟用程式碼格式化程式。'
config.format.defaultConfig =