summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2023-10-11 10:48:36 +0800
committer最萌小汐 <sumneko@hotmail.com>2023-10-11 10:48:36 +0800
commit9f54935bc1447c07a29a3fc4357a0dcbafd36a37 (patch)
tree95d09a686e9d699ac6a585a360634e2aeeb1b090
parent3a666c7a77f51b951985ceb57467cc87f00da3cb (diff)
downloadlua-language-server-9f54935bc1447c07a29a3fc4357a0dcbafd36a37.zip
update doc and locale
-rw-r--r--doc/en-us/config.md9
-rw-r--r--doc/pt-br/config.md13
-rw-r--r--doc/zh-cn/config.md13
-rw-r--r--doc/zh-tw/config.md7
-rw-r--r--locale/pt-br/meta.lua2
5 files changed, 32 insertions, 12 deletions
diff --git a/doc/en-us/config.md b/doc/en-us/config.md
index 9e087d70..52066a54 100644
--- a/doc/en-us/config.md
+++ b/doc/en-us/config.md
@@ -258,6 +258,7 @@ Array<string>
* ``"global-in-nil-env"``
* ``"incomplete-signature-doc"``
* ``"index-in-func-name"``
+* ``"inject-field"``
* ``"invisible"``
* ``"jump-local-scope"``
* ``"keyword"``
@@ -505,6 +506,7 @@ object<string, string>
* assign-type-mismatch
* cast-local-type
* cast-type-mismatch
+ * inject-field
* need-check-nil
* param-type-mismatch
* return-type-mismatch
@@ -633,6 +635,7 @@ object<string, string>
* assign-type-mismatch
* cast-local-type
* cast-type-mismatch
+ * inject-field
* need-check-nil
* param-type-mismatch
* return-type-mismatch
@@ -826,6 +829,7 @@ object<string, string>
Incomplete @param or @return annotations for functions.
*/
"incomplete-signature-doc": "None",
+ "inject-field": "Opened",
/*
Enable diagnostics for accesses to fields which are invisible.
*/
@@ -1095,6 +1099,7 @@ object<string, string>
Incomplete @param or @return annotations for functions.
*/
"incomplete-signature-doc": "Warning",
+ "inject-field": "Warning",
/*
Enable diagnostics for accesses to fields which are invisible.
*/
@@ -1853,7 +1858,7 @@ false
# runtime.plugin
-Plugin path. Please read the [wiki](https://luals.github.io/wiki/plugins) to learn more.
+Plugin path. Please read [wiki](https://luals.github.io/wiki/plugins) to learn more.
## type
@@ -2291,4 +2296,4 @@ Array<string>
```jsonc
[]
-```
+``` \ No newline at end of file
diff --git a/doc/pt-br/config.md b/doc/pt-br/config.md
index 68643bdd..af0be93c 100644
--- a/doc/pt-br/config.md
+++ b/doc/pt-br/config.md
@@ -258,6 +258,7 @@ Array<string>
* ``"global-in-nil-env"``
* ``"incomplete-signature-doc"``
* ``"index-in-func-name"``
+* ``"inject-field"``
* ``"invisible"``
* ``"jump-local-scope"``
* ``"keyword"``
@@ -505,6 +506,7 @@ object<string, string>
* assign-type-mismatch
* cast-local-type
* cast-type-mismatch
+ * inject-field
* need-check-nil
* param-type-mismatch
* return-type-mismatch
@@ -633,6 +635,7 @@ object<string, string>
* assign-type-mismatch
* cast-local-type
* cast-type-mismatch
+ * inject-field
* need-check-nil
* param-type-mismatch
* return-type-mismatch
@@ -738,7 +741,7 @@ object<string, string>
```jsonc
{
/*
- 优先级歧义,如:`num or 0 + 1`,推测用户的实际期望为 `(num or 0) + 1`
+ 优先级歧义,如:`num or 0 + 1`,推测用户的实际期望为 `(num or 0) + 1`
*/
"ambiguity-1": "Any",
/*
@@ -826,6 +829,7 @@ object<string, string>
Incomplete @param or @return annotations for functions.
*/
"incomplete-signature-doc": "None",
+ "inject-field": "Opened",
/*
Enable diagnostics for accesses to fields which are invisible.
*/
@@ -1007,7 +1011,7 @@ object<string, string>
```jsonc
{
/*
- 优先级歧义,如:`num or 0 + 1`,推测用户的实际期望为 `(num or 0) + 1`
+ 优先级歧义,如:`num or 0 + 1`,推测用户的实际期望为 `(num or 0) + 1`
*/
"ambiguity-1": "Warning",
/*
@@ -1095,6 +1099,7 @@ object<string, string>
Incomplete @param or @return annotations for functions.
*/
"incomplete-signature-doc": "Warning",
+ "inject-field": "Warning",
/*
Enable diagnostics for accesses to fields which are invisible.
*/
@@ -1853,7 +1858,7 @@ false
# runtime.plugin
-Plugin path. Please read the [wiki](https://luals.github.io/wiki/plugins) to learn more.
+Plugin path. Please read [wiki](https://luals.github.io/wiki/plugins) to learn more.
## type
@@ -2291,4 +2296,4 @@ Array<string>
```jsonc
[]
-```
+``` \ No newline at end of file
diff --git a/doc/zh-cn/config.md b/doc/zh-cn/config.md
index bf33501d..26b54ad5 100644
--- a/doc/zh-cn/config.md
+++ b/doc/zh-cn/config.md
@@ -258,6 +258,7 @@ Array<string>
* ``"global-in-nil-env"``
* ``"incomplete-signature-doc"``
* ``"index-in-func-name"``
+* ``"inject-field"``
* ``"invisible"``
* ``"jump-local-scope"``
* ``"keyword"``
@@ -505,6 +506,7 @@ object<string, string>
* assign-type-mismatch
* cast-local-type
* cast-type-mismatch
+ * inject-field
* need-check-nil
* param-type-mismatch
* return-type-mismatch
@@ -633,6 +635,7 @@ object<string, string>
* assign-type-mismatch
* cast-local-type
* cast-type-mismatch
+ * inject-field
* need-check-nil
* param-type-mismatch
* return-type-mismatch
@@ -738,7 +741,7 @@ object<string, string>
```jsonc
{
/*
- 优先级歧义,如:`num or 0 + 1`,推测用户的实际期望为 `(num or 0) + 1`
+ 优先级歧义,如:`num or 0 + 1`,推测用户的实际期望为 `(num or 0) + 1`
*/
"ambiguity-1": "Any",
/*
@@ -826,6 +829,7 @@ object<string, string>
Incomplete @param or @return annotations for functions.
*/
"incomplete-signature-doc": "None",
+ "inject-field": "Opened",
/*
Enable diagnostics for accesses to fields which are invisible.
*/
@@ -1006,7 +1010,7 @@ object<string, string>
```jsonc
{
/*
- 优先级歧义,如:`num or 0 + 1`,推测用户的实际期望为 `(num or 0) + 1`
+ 优先级歧义,如:`num or 0 + 1`,推测用户的实际期望为 `(num or 0) + 1`
*/
"ambiguity-1": "Warning",
/*
@@ -1094,6 +1098,7 @@ object<string, string>
Incomplete @param or @return annotations for functions.
*/
"incomplete-signature-doc": "Warning",
+ "inject-field": "Warning",
/*
Enable diagnostics for accesses to fields which are invisible.
*/
@@ -1659,7 +1664,7 @@ string
# misc.parameters
-VSCode中启动语言服务时的[命令行参数](https://luals.github.io/wiki/usage/#arguments)。
+VSCode中启动语言服务时的[命令行参数](https://luals.github.io/wiki/usage#arguments)。
## type
@@ -2290,4 +2295,4 @@ Array<string>
```jsonc
[]
-```
+``` \ No newline at end of file
diff --git a/doc/zh-tw/config.md b/doc/zh-tw/config.md
index a39b8f7b..9a564683 100644
--- a/doc/zh-tw/config.md
+++ b/doc/zh-tw/config.md
@@ -258,6 +258,7 @@ Array<string>
* ``"global-in-nil-env"``
* ``"incomplete-signature-doc"``
* ``"index-in-func-name"``
+* ``"inject-field"``
* ``"invisible"``
* ``"jump-local-scope"``
* ``"keyword"``
@@ -505,6 +506,7 @@ object<string, string>
* assign-type-mismatch
* cast-local-type
* cast-type-mismatch
+ * inject-field
* need-check-nil
* param-type-mismatch
* return-type-mismatch
@@ -633,6 +635,7 @@ object<string, string>
* assign-type-mismatch
* cast-local-type
* cast-type-mismatch
+ * inject-field
* need-check-nil
* param-type-mismatch
* return-type-mismatch
@@ -826,6 +829,7 @@ object<string, string>
Incomplete @param or @return annotations for functions.
*/
"incomplete-signature-doc": "None",
+ "inject-field": "Opened",
/*
Enable diagnostics for accesses to fields which are invisible.
*/
@@ -1094,6 +1098,7 @@ object<string, string>
Incomplete @param or @return annotations for functions.
*/
"incomplete-signature-doc": "Warning",
+ "inject-field": "Warning",
/*
Enable diagnostics for accesses to fields which are invisible.
*/
@@ -2290,4 +2295,4 @@ Array<string>
```jsonc
[]
-```
+``` \ No newline at end of file
diff --git a/locale/pt-br/meta.lua b/locale/pt-br/meta.lua
index b14b260e..ddd81ce2 100644
--- a/locale/pt-br/meta.lua
+++ b/locale/pt-br/meta.lua
@@ -523,7 +523,7 @@ math.maxinteger['>5.3'] =
'Retorna o valor máximo para um inteiro.'
math.min =
'Retorna o argumento com o valor mínimo de acordo com o operador `<`.'
-math.mixinteger['>5.3'] =
+math.mininteger['>5.3'] =
'Retorna o valor mínimo para um inteiro.'
math.modf =
'Retorna a parte inteira e a parte fracionária de `x`.'