summaryrefslogtreecommitdiff
path: root/locale
diff options
context:
space:
mode:
authorfesily <fesil@foxmail.com>2024-02-21 15:02:35 +0800
committerfesily <fesil@foxmail.com>2024-02-21 15:02:35 +0800
commitadfac399b1815731de6f12af1fc3e38516969dc7 (patch)
tree71e37068805d188313ccd56ef6fcee1b3a31ef72 /locale
parenteab7e6d84bd2bd937cf2e27e9da11a3c96c45605 (diff)
downloadlua-language-server-adfac399b1815731de6f12af1fc3e38516969dc7.zip
add infer function param type
Diffstat (limited to 'locale')
-rw-r--r--locale/en-us/setting.lua6
-rw-r--r--locale/pt-br/setting.lua6
-rw-r--r--locale/zh-cn/setting.lua6
-rw-r--r--locale/zh-tw/setting.lua6
4 files changed, 24 insertions, 0 deletions
diff --git a/locale/en-us/setting.lua b/locale/en-us/setting.lua
index 80926d12..be76bf23 100644
--- a/locale/en-us/setting.lua
+++ b/locale/en-us/setting.lua
@@ -293,6 +293,12 @@ When checking the type of union type, ignore the `nil` in it.
When this setting is `false`, the `number|nil` type cannot be assigned to the `number` type. It can be with `true`.
]]
+config.type.inferParamType =
+[[
+When the parameter type is not annotated, the parameter type is inferred from the function's incoming parameters.
+
+When this setting is `false`, the type of the parameter is `any` when it is not annotated.
+]]
config.doc.privateName =
'Treat specific field names as private, e.g. `m_*` means `XXX.m_id` and `XXX.m_type` are private, witch can only be accessed in the class where the definition is located.'
config.doc.protectedName =
diff --git a/locale/pt-br/setting.lua b/locale/pt-br/setting.lua
index 4e23e0ff..6ececcd3 100644
--- a/locale/pt-br/setting.lua
+++ b/locale/pt-br/setting.lua
@@ -293,6 +293,12 @@ When checking the type of union type, ignore the `nil` in it.
When this setting is `false`, the `number|nil` type cannot be assigned to the `number` type. It can be with `true`.
]]
+config.type.inferParamType = -- TODO: need translate!
+[[
+When the parameter type is not annotated, the parameter type is inferred from the function's incoming parameters.
+
+When this setting is `false`, the type of the parameter is `any` when it is not annotated.
+]]
config.doc.privateName = -- TODO: need translate!
'Treat specific field names as private, e.g. `m_*` means `XXX.m_id` and `XXX.m_type` are private, witch can only be accessed in the class where the definition is located.'
config.doc.protectedName = -- TODO: need translate!
diff --git a/locale/zh-cn/setting.lua b/locale/zh-cn/setting.lua
index c4ec1b55..78e7fb68 100644
--- a/locale/zh-cn/setting.lua
+++ b/locale/zh-cn/setting.lua
@@ -292,6 +292,12 @@ config.type.weakNilCheck =
此设置为 `false` 时,`numer|nil` 类型无法赋给 `number` 类型;为 `true` 是则可以。
]]
+config.type.inferParamType =
+[[
+未注释参数类型时,参数类型由函数传入参数推断。
+
+如果设置为 "false",则在未注释时,参数类型为 "any"。
+]]
config.doc.privateName =
'将特定名称的字段视为私有,例如 `m_*` 意味着 `XXX.m_id` 与 `XXX.m_type` 是私有字段,只能在定义所在的类中访问。'
config.doc.protectedName =
diff --git a/locale/zh-tw/setting.lua b/locale/zh-tw/setting.lua
index c8e0dbfc..2b43e954 100644
--- a/locale/zh-tw/setting.lua
+++ b/locale/zh-tw/setting.lua
@@ -292,6 +292,12 @@ When checking the type of union type, ignore the `nil` in it.
When this setting is `false`, the `number|nil` type cannot be assigned to the `number` type. It can be with `true`.
]]
+config.type.inferParamType = -- TODO: need translate!
+[[
+未注释参数类型时,参数类型由函数传入参数推断。
+
+如果设置为 "false",则在未注释时,参数类型为 "any"。
+]]
config.doc.privateName = -- TODO: need translate!
'Treat specific field names as private, e.g. `m_*` means `XXX.m_id` and `XXX.m_type` are private, witch can only be accessed in the class where the definition is located.'
config.doc.protectedName = -- TODO: need translate!