diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-06-25 03:58:51 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-06-25 03:58:51 +0800 |
commit | eff02b11a8186ef25f35aa34be2e59470fd69cb3 (patch) | |
tree | 08f10dc0fdddf6dcd9865dce0c429b4a2aed191a | |
parent | fa7375775e97d68ce7507b0c7e50eced84bab2ac (diff) | |
download | lua-language-server-eff02b11a8186ef25f35aa34be2e59470fd69cb3.zip |
update locale for new settings
-rw-r--r-- | locale/en-us/script.lua | 2 | ||||
-rw-r--r-- | locale/en-us/setting.lua | 8 | ||||
-rw-r--r-- | locale/pt-br/script.lua | 2 | ||||
-rw-r--r-- | locale/pt-br/setting.lua | 8 | ||||
-rw-r--r-- | locale/zh-cn/setting.lua | 8 | ||||
-rw-r--r-- | locale/zh-tw/meta.lua | 2 | ||||
-rw-r--r-- | locale/zh-tw/script.lua | 2 | ||||
-rw-r--r-- | locale/zh-tw/setting.lua | 10 |
8 files changed, 37 insertions, 5 deletions
diff --git a/locale/en-us/script.lua b/locale/en-us/script.lua index ba4a8bb9..fef242af 100644 --- a/locale/en-us/script.lua +++ b/locale/en-us/script.lua @@ -1005,4 +1005,4 @@ print(x) --> table ``` --- [View Proposal](https://github.com/sumneko/lua-language-server/issues/1030) -]=]
\ No newline at end of file +]=] diff --git a/locale/en-us/setting.lua b/locale/en-us/setting.lua index 9bb2969e..bc7746e0 100644 --- a/locale/en-us/setting.lua +++ b/locale/en-us/setting.lua @@ -259,6 +259,14 @@ config.IntelliSense.traceBeSetted = 'Please read [wiki](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features) to learn more.' config.IntelliSense.traceFieldInject = 'Please read [wiki](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features) to learn more.' +config.type.castNumberToInteger = +'Allowed to assign the `number` type to the `integer` type.' +config.type.weakUnionCheck = +[[ +Once one subtype of a union type meets the condition, the union type also meets the condition. + +When this setting is `false`, the `number|boolean` 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/script.lua b/locale/pt-br/script.lua index 8c6df41d..e229454e 100644 --- a/locale/pt-br/script.lua +++ b/locale/pt-br/script.lua @@ -1005,4 +1005,4 @@ print(x) --> table ``` --- [View Proposal](https://github.com/sumneko/lua-language-server/issues/1030) -]=]
\ No newline at end of file +]=] diff --git a/locale/pt-br/setting.lua b/locale/pt-br/setting.lua index 7d9a3d0e..30e29893 100644 --- a/locale/pt-br/setting.lua +++ b/locale/pt-br/setting.lua @@ -259,6 +259,14 @@ config.IntelliSense.traceBeSetted = -- TODO: need translate! 'Please read [wiki](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features) to learn more.' config.IntelliSense.traceFieldInject = -- TODO: need translate! 'Please read [wiki](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features) to learn more.' +config.type.castNumberToInteger = -- TODO: need translate! +'Allowed to assign the `number` type to the `integer` type.' +config.type.weakUnionCheck = -- TODO: need translate! +[[ +Once one subtype of a union type meets the condition, the union type also meets the condition. + +When this setting is `false`, the `number|boolean` 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 48c56e27..004f350d 100644 --- a/locale/zh-cn/setting.lua +++ b/locale/zh-cn/setting.lua @@ -258,6 +258,14 @@ config.IntelliSense.traceBeSetted = '请查阅[文档](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features)了解用法。' config.IntelliSense.traceFieldInject = '请查阅[文档](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features)了解用法。' +config.type.castNumberToInteger = +'允许将 `number` 类型赋给 `integer` 类型。' +config.type.weakUnionCheck = +[[ +联合类型中只要有一个子类型满足条件,则联合类型也满足条件。 + +此设置为 `false` 时,`number|boolean` 类型无法赋给 `number` 类型;为 `true` 时则可以。 +]] config.diagnostics['unused-local'] = '未使用的局部变量' config.diagnostics['unused-function'] = diff --git a/locale/zh-tw/meta.lua b/locale/zh-tw/meta.lua index b62e67f0..f97241df 100644 --- a/locale/zh-tw/meta.lua +++ b/locale/zh-tw/meta.lua @@ -740,4 +740,4 @@ utf8.codepoint = utf8.len = '回傳字串 `s` 中 從位置 `i` 到 `j` 間 (包括兩端) UTF-8 字元的個數。' utf8.offset = -'回傳編碼在 `s` 中的第 `n` 個字元的開始位置(按位元組數)(從位置 `i` 處開始統計)。'
\ No newline at end of file +'回傳編碼在 `s` 中的第 `n` 個字元的開始位置(按位元組數)(從位置 `i` 處開始統計)。' diff --git a/locale/zh-tw/script.lua b/locale/zh-tw/script.lua index 855e4314..437d4dc6 100644 --- a/locale/zh-tw/script.lua +++ b/locale/zh-tw/script.lua @@ -1000,4 +1000,4 @@ print(x) --> table ``` --- [檢視提議](https://github.com/sumneko/lua-language-server/issues/1030) -]=]
\ No newline at end of file +]=] diff --git a/locale/zh-tw/setting.lua b/locale/zh-tw/setting.lua index 2e32ec19..108c642d 100644 --- a/locale/zh-tw/setting.lua +++ b/locale/zh-tw/setting.lua @@ -258,6 +258,14 @@ config.IntelliSense.traceBeSetted = '請查閱[文件](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features)瞭解用法。' config.IntelliSense.traceFieldInject = '請查閱[文件](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features)瞭解用法。' +config.type.castNumberToInteger = -- TODO: need translate! +'Allowed to assign the `number` type to the `integer` type.' +config.type.weakUnionCheck = -- TODO: need translate! +[[ +Once one subtype of a union type meets the condition, the union type also meets the condition. + +When this setting is `false`, the `number|boolean` type cannot be assigned to the `number` type. It can be with `true`. +]] config.diagnostics['unused-local'] = '未使用的區域變數' config.diagnostics['unused-function'] = @@ -291,4 +299,4 @@ config.diagnostics['duplicate-index'] = config.diagnostics['empty-block'] = '空程式碼區塊' config.diagnostics['redundant-value'] = -'賦值操作時,值的數量比被賦值的對象多'
\ No newline at end of file +'賦值操作時,值的數量比被賦值的對象多' |