diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-07-01 16:10:26 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-07-01 16:10:33 +0800 |
commit | 87e0a180f97cd6bc31909b60228f1148c0289529 (patch) | |
tree | da72f156113a156b960018ec352196823fe28649 /locale | |
parent | cbcac3afc40268eae82a41a82248d912b1cfeeb6 (diff) | |
download | lua-language-server-87e0a180f97cd6bc31909b60228f1148c0289529.zip |
#1260 `type.weakNilCheck`
Diffstat (limited to 'locale')
-rw-r--r-- | locale/en-us/setting.lua | 6 | ||||
-rw-r--r-- | locale/pt-br/setting.lua | 6 | ||||
-rw-r--r-- | locale/zh-cn/setting.lua | 6 | ||||
-rw-r--r-- | locale/zh-tw/setting.lua | 6 |
4 files changed, 24 insertions, 0 deletions
diff --git a/locale/en-us/setting.lua b/locale/en-us/setting.lua index b2ba86fd..5ce69de7 100644 --- a/locale/en-us/setting.lua +++ b/locale/en-us/setting.lua @@ -275,6 +275,12 @@ Once one subtype of a union type meets the condition, the union type also meets When this setting is `false`, the `number|boolean` type cannot be assigned to the `number` type. It can be with `true`. ]] +config.type.weakNilCheck = +[[ +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.diagnostics['unused-local'] = 'Enable unused local variable diagnostics.' config.diagnostics['unused-function'] = diff --git a/locale/pt-br/setting.lua b/locale/pt-br/setting.lua index 3a8049af..e8271ce5 100644 --- a/locale/pt-br/setting.lua +++ b/locale/pt-br/setting.lua @@ -275,6 +275,12 @@ Once one subtype of a union type meets the condition, the union type also meets When this setting is `false`, the `number|boolean` type cannot be assigned to the `number` type. It can be with `true`. ]] +config.type.weakNilCheck = -- TODO: need translate! +[[ +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.diagnostics['unused-local'] = -- TODO: need translate! '未使用的局部变量' config.diagnostics['unused-function'] = -- TODO: need translate! diff --git a/locale/zh-cn/setting.lua b/locale/zh-cn/setting.lua index 9fcd5e06..54de9293 100644 --- a/locale/zh-cn/setting.lua +++ b/locale/zh-cn/setting.lua @@ -274,6 +274,12 @@ config.type.weakUnionCheck = 此设置为 `false` 时,`number|boolean` 类型无法赋给 `number` 类型;为 `true` 时则可以。 ]] +config.type.weakNilCheck = +[[ +对联合类型进行类型检查时,忽略其中的 `nil`。 + +此设置为 `false` 时,`numer|nil` 类型无法赋给 `number` 类型;为 `true` 是则可以。 +]] config.diagnostics['unused-local'] = '未使用的局部变量' config.diagnostics['unused-function'] = diff --git a/locale/zh-tw/setting.lua b/locale/zh-tw/setting.lua index 3af50c5b..17a3435a 100644 --- a/locale/zh-tw/setting.lua +++ b/locale/zh-tw/setting.lua @@ -274,6 +274,12 @@ config.type.weakUnionCheck = 此設定為 `false` 時,`number|boolean` 類型無法賦給 `number` 類型;為 `true` 時則可以。 ]] +config.type.weakNilCheck = -- TODO: need translate! +[[ +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.diagnostics['unused-local'] = '未使用的區域變數' config.diagnostics['unused-function'] = |