summaryrefslogtreecommitdiff
path: root/locale
diff options
context:
space:
mode:
authorAndreas <andreas.matthias@gmail.com>2024-02-26 12:47:13 +0100
committerAndreas <andreas.matthias@gmail.com>2024-02-26 12:47:13 +0100
commit6b8b102dc37b48f71c4bea362b78a50b443dae7d (patch)
tree7b0cfd773d1d6678687c5dd4b113a1acf20a20e5 /locale
parentd99570be1fefc8b0e8e1420ae564f375258339e7 (diff)
parentc156377201f70db009d8bcfcf664370ea3f0eec2 (diff)
downloadlua-language-server-6b8b102dc37b48f71c4bea362b78a50b443dae7d.zip
Merge branch 'master' into async
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..9ef46b86 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 a parameter type is not annotated, it is inferred from the function's call sites.
+
+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!