summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorteatimeguest <teatimeguest@gmail.com>2024-07-25 23:01:58 +0900
committer最萌小汐 <sumneko@hotmail.com>2024-07-29 12:02:18 +0800
commit2a48dee3f216992150f05e288fa6a439c864f0b8 (patch)
tree85065e287cc161ffb77eb30d8bb61e2c7bc81ebe
parent7d06e5573c8188e61516e987b0d796a40f718b05 (diff)
downloadlua-language-server-2a48dee3f216992150f05e288fa6a439c864f0b8.zip
Fix typos in annotation descriptions
-rw-r--r--changelog.md1
-rw-r--r--locale/en-us/script.lua4
-rw-r--r--locale/pt-br/script.lua8
-rw-r--r--locale/zh-cn/script.lua8
-rw-r--r--locale/zh-tw/script.lua8
5 files changed, 15 insertions, 14 deletions
diff --git a/changelog.md b/changelog.md
index c62510ab..9cdb86e9 100644
--- a/changelog.md
+++ b/changelog.md
@@ -13,6 +13,7 @@
* `FIX` Bad triggering of the `inject-field` diagnostic, when the fields are declared at the creation of the object [#2746](https://github.com/LuaLS/lua-language-server/issues/2746)
* `CHG` Change spacing of parameter inlay hints to match other LSPs, like `rust-analyzer`
* `FIX` Inconsistent type narrow behavior of function call args [#2758](https://github.com/LuaLS/lua-language-server/issues/2758)
+* `FIX` Typos in annotation descriptions
## 3.9.3
`2024-6-11`
diff --git a/locale/en-us/script.lua b/locale/en-us/script.lua
index 6fc488d8..cf2fbe8e 100644
--- a/locale/en-us/script.lua
+++ b/locale/en-us/script.lua
@@ -1167,7 +1167,7 @@ Provide type declaration for [operator metamethods](http://lua-users.org/wiki/Me
### Vector Add Metamethod
```
---@class Vector
----@operation add(Vector):Vector
+---@operator add(Vector):Vector
vA = Vector.new(1, 2, 3)
vB = Vector.new(10, 20, 30)
@@ -1178,7 +1178,7 @@ vC = vA + vB
### Unary Minus
```
---@class Passcode
----@operation unm:integer
+---@operator unm:integer
pA = Passcode.new(1234)
pB = -pA
diff --git a/locale/pt-br/script.lua b/locale/pt-br/script.lua
index 468812cc..50568aeb 100644
--- a/locale/pt-br/script.lua
+++ b/locale/pt-br/script.lua
@@ -1167,7 +1167,7 @@ Provide type declaration for [operator metamethods](http://lua-users.org/wiki/Me
### Vector Add Metamethod
```
---@class Vector
----@operation add(Vector):Vector
+---@operator add(Vector):Vector
vA = Vector.new(1, 2, 3)
vB = Vector.new(10, 20, 30)
@@ -1178,7 +1178,7 @@ vC = vA + vB
### Unary Minus
```
---@class Passcode
----@operation unm:integer
+---@operator unm:integer
pA = Passcode.new(1234)
pB = -pA
@@ -1216,7 +1216,7 @@ setColor(colors.green)
LUADOC_DESC_SOURCE = -- TODO: need translate!
[=[
Provide a reference to some source code which lives in another file. When
-searching for the defintion of an item, its `@source` will be used.
+searching for the definition of an item, its `@source` will be used.
## Syntax
`@source <path>`
@@ -1264,7 +1264,7 @@ end
LUADOC_DESC_PRIVATE = -- TODO: need translate!
[=[
Mark a function as private to a @class. Private functions can be accessed only
-from within their class and are not accessable from child classes.
+from within their class and are not accessible from child classes.
## Syntax
`@private`
diff --git a/locale/zh-cn/script.lua b/locale/zh-cn/script.lua
index a4d20628..9cea601a 100644
--- a/locale/zh-cn/script.lua
+++ b/locale/zh-cn/script.lua
@@ -1167,7 +1167,7 @@ Provide type declaration for [operator metamethods](http://lua-users.org/wiki/Me
### Vector Add Metamethod
```
---@class Vector
----@operation add(Vector):Vector
+---@operator add(Vector):Vector
vA = Vector.new(1, 2, 3)
vB = Vector.new(10, 20, 30)
@@ -1178,7 +1178,7 @@ vC = vA + vB
### Unary Minus
```
---@class Passcode
----@operation unm:integer
+---@operator unm:integer
pA = Passcode.new(1234)
pB = -pA
@@ -1216,7 +1216,7 @@ setColor(colors.green)
LUADOC_DESC_SOURCE = -- TODO: need translate!
[=[
Provide a reference to some source code which lives in another file. When
-searching for the defintion of an item, its `@source` will be used.
+searching for the definition of an item, its `@source` will be used.
## Syntax
`@source <path>`
@@ -1264,7 +1264,7 @@ end
LUADOC_DESC_PRIVATE = -- TODO: need translate!
[=[
Mark a function as private to a @class. Private functions can be accessed only
-from within their class and are not accessable from child classes.
+from within their class and are not accessible from child classes.
## Syntax
`@private`
diff --git a/locale/zh-tw/script.lua b/locale/zh-tw/script.lua
index c17c41fb..1feaf2ad 100644
--- a/locale/zh-tw/script.lua
+++ b/locale/zh-tw/script.lua
@@ -1161,7 +1161,7 @@ Provide type declaration for [operator metamethods](http://lua-users.org/wiki/Me
### Vector Add Metamethod
```
---@class Vector
----@operation add(Vector):Vector
+---@operator add(Vector):Vector
vA = Vector.new(1, 2, 3)
vB = Vector.new(10, 20, 30)
@@ -1172,7 +1172,7 @@ vC = vA + vB
### Unary Minus
```
---@class Passcode
----@operation unm:integer
+---@operator unm:integer
pA = Passcode.new(1234)
pB = -pA
@@ -1210,7 +1210,7 @@ setColor(colors.green)
LUADOC_DESC_SOURCE = -- TODO: need translate!
[=[
Provide a reference to some source code which lives in another file. When
-searching for the defintion of an item, its `@source` will be used.
+searching for the definition of an item, its `@source` will be used.
## Syntax
`@source <path>`
@@ -1258,7 +1258,7 @@ end
LUADOC_DESC_PRIVATE = -- TODO: need translate!
[=[
Mark a function as private to a @class. Private functions can be accessed only
-from within their class and are not accessable from child classes.
+from within their class and are not accessible from child classes.
## Syntax
`@private`