diff options
-rw-r--r-- | locale/en-us/script.lua | 4 | ||||
-rw-r--r-- | locale/pt-br/script.lua | 4 | ||||
-rw-r--r-- | locale/zh-cn/script.lua | 4 | ||||
-rw-r--r-- | locale/zh-tw/script.lua | 18 |
4 files changed, 11 insertions, 19 deletions
diff --git a/locale/en-us/script.lua b/locale/en-us/script.lua index fef242af..6c545d69 100644 --- a/locale/en-us/script.lua +++ b/locale/en-us/script.lua @@ -973,8 +973,6 @@ LUADOC_DESC_CAST = [=[ Allows type casting (type conversion). -⚠️ **Not Finalized** - ## Syntax `@cast <variable> <[+|-]type>[, <[+|-]type>]...` @@ -1004,5 +1002,5 @@ local x --> string|table print(x) --> table ``` --- -[View Proposal](https://github.com/sumneko/lua-language-server/issues/1030) +[View Wiki](https://github.com/sumneko/lua-language-server/wiki/EmmyLua-Annotations#cast) ]=] diff --git a/locale/pt-br/script.lua b/locale/pt-br/script.lua index e229454e..f8216c5c 100644 --- a/locale/pt-br/script.lua +++ b/locale/pt-br/script.lua @@ -973,8 +973,6 @@ LUADOC_DESC_CAST = -- TODO: need translate! [=[ Allows type casting (type conversion). -⚠️ **Not Finalized** - ## Syntax `@cast <variable> <[+|-]type>[, <[+|-]type>]...` @@ -1004,5 +1002,5 @@ local x --> string|table print(x) --> table ``` --- -[View Proposal](https://github.com/sumneko/lua-language-server/issues/1030) +[View Wiki](https://github.com/sumneko/lua-language-server/wiki/EmmyLua-Annotations#cast) ]=] diff --git a/locale/zh-cn/script.lua b/locale/zh-cn/script.lua index 09225d2e..f555312b 100644 --- a/locale/zh-cn/script.lua +++ b/locale/zh-cn/script.lua @@ -973,8 +973,6 @@ LUADOC_DESC_CAST = -- TODO: need translate! [=[ Allows type casting (type conversion). -⚠️ **Not Finalized** - ## Syntax `@cast <variable> <[+|-]type>[, <[+|-]type>]...` @@ -1004,5 +1002,5 @@ local x --> string|table print(x) --> table ``` --- -[View Proposal](https://github.com/sumneko/lua-language-server/issues/1030) +[View Wiki](https://github.com/sumneko/lua-language-server/wiki/EmmyLua-Annotations#cast) ]=] diff --git a/locale/zh-tw/script.lua b/locale/zh-tw/script.lua index 437d4dc6..91fd1bb7 100644 --- a/locale/zh-tw/script.lua +++ b/locale/zh-tw/script.lua @@ -964,17 +964,15 @@ LUADOC_DESC_NODISCARD = --- [檢視文件](https://github.com/sumneko/lua-language-server/wiki/EmmyLua-Annotations#nodiscard) ]=] -LUADOC_DESC_CAST = +LUADOC_DESC_CAST = -- TODO: need translate! [=[ -允許類型轉換。 +Allows type casting (type conversion). -⚠️ **不是最終定案** - -## 語法 +## Syntax `@cast <variable> <[+|-]type>[, <[+|-]type>]...` -## 用法 -### 覆蓋類型 +## Usage +### Overwrite type ``` ---@type integer local x --> integer @@ -982,7 +980,7 @@ local x --> integer ---@cast x string print(x) --> string ``` -### 增加類型 +### Add Type ``` ---@type string local x --> string @@ -990,7 +988,7 @@ local x --> string ---@cast x +boolean, +number print(x) --> string|boolean|number ``` -### 移除類型 +### Remove Type ``` ---@type string|table local x --> string|table @@ -999,5 +997,5 @@ local x --> string|table print(x) --> table ``` --- -[檢視提議](https://github.com/sumneko/lua-language-server/issues/1030) +[View Wiki](https://github.com/sumneko/lua-language-server/wiki/EmmyLua-Annotations#cast) ]=] |