Skip to content

Commit

Permalink
update doc and locale
Browse files Browse the repository at this point in the history
  • Loading branch information
sumneko committed Oct 11, 2023
1 parent 3a666c7 commit 9f54935
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 12 deletions.
9 changes: 7 additions & 2 deletions doc/en-us/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ Array<string>
* ``"global-in-nil-env"``
* ``"incomplete-signature-doc"``
* ``"index-in-func-name"``
* ``"inject-field"``
* ``"invisible"``
* ``"jump-local-scope"``
* ``"keyword"``
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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.
*/
Expand Down Expand Up @@ -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.
*/
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -2291,4 +2296,4 @@ Array<string>

```jsonc
[]
```
```
13 changes: 9 additions & 4 deletions doc/pt-br/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ Array<string>
* ``"global-in-nil-env"``
* ``"incomplete-signature-doc"``
* ``"index-in-func-name"``
* ``"inject-field"``
* ``"invisible"``
* ``"jump-local-scope"``
* ``"keyword"``
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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",
/*
Expand Down Expand Up @@ -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.
*/
Expand Down Expand Up @@ -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",
/*
Expand Down Expand Up @@ -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.
*/
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -2291,4 +2296,4 @@ Array<string>

```jsonc
[]
```
```
13 changes: 9 additions & 4 deletions doc/zh-cn/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ Array<string>
* ``"global-in-nil-env"``
* ``"incomplete-signature-doc"``
* ``"index-in-func-name"``
* ``"inject-field"``
* ``"invisible"``
* ``"jump-local-scope"``
* ``"keyword"``
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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",
/*
Expand Down Expand Up @@ -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.
*/
Expand Down Expand Up @@ -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",
/*
Expand Down Expand Up @@ -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.
*/
Expand Down Expand Up @@ -1659,7 +1664,7 @@ string

# misc.parameters

VSCode中启动语言服务时的[命令行参数](https://luals.github.io/wiki/usage/#arguments)
VSCode中启动语言服务时的[命令行参数](https://luals.github.io/wiki/usage#arguments)

## type

Expand Down Expand Up @@ -2290,4 +2295,4 @@ Array<string>

```jsonc
[]
```
```
7 changes: 6 additions & 1 deletion doc/zh-tw/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ Array<string>
* ``"global-in-nil-env"``
* ``"incomplete-signature-doc"``
* ``"index-in-func-name"``
* ``"inject-field"``
* ``"invisible"``
* ``"jump-local-scope"``
* ``"keyword"``
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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.
*/
Expand Down Expand Up @@ -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.
*/
Expand Down Expand Up @@ -2290,4 +2295,4 @@ Array<string>

```jsonc
[]
```
```
2 changes: 1 addition & 1 deletion locale/pt-br/meta.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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`.'
Expand Down

0 comments on commit 9f54935

Please sign in to comment.