Skip to content

Commit 88911d7

Browse files
committed
update locale and changelog
1 parent 4b8d968 commit 88911d7

File tree

9 files changed

+35
-6
lines changed

9 files changed

+35
-6
lines changed

changelog.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,15 @@
44
<!-- Add all new changes here. They will be moved under a version at release -->
55
* `NEW` Added support for Japanese locale
66
* `NEW` Infer function parameter types when overriding the same-named class function in an instance of that class [#2158](https://github.com/LuaLS/lua-language-server/issues/2158)
7-
* `FIX` Eliminate floating point error in test benchmark output
8-
* `FIX` Remove luamake install from make scripts
9-
* `FIX` Incorrect `table` type injected to the global variable created by `rawset(_G, ...)` [#2863](https://github.com/LuaLS/lua-language-server/issues/2863)
107
* `NEW` Types with literal fields can be narrowed.
118
* `NEW` Reference addons installed via the addon manager with `${addons}` [#2866](https://github.com/LuaLS/lua-language-server/pull/2866).
129
* `NEW` Support using `---@class` on `rawset(_G, ...)` to annotate the created global variable [#2862](https://github.com/LuaLS/lua-language-server/issues/2862)
10+
* `NEW` Settings:
11+
+ `Lua.language.fixIndent`
12+
+ `Lua.language.completeAnnotation`
13+
* `FIX` Eliminate floating point error in test benchmark output
14+
* `FIX` Remove luamake install from make scripts
15+
* `FIX` Incorrect `table` type injected to the global variable created by `rawset(_G, ...)` [#2863](https://github.com/LuaLS/lua-language-server/issues/2863)
1316

1417
## 3.10.6
1518
`2024-9-10`

locale/en-us/setting.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,10 @@ config.misc.parameters =
281281
'[Command line parameters](https://github.com/LuaLS/lua-telemetry-server/tree/master/method) when starting the language server in VSCode.'
282282
config.misc.executablePath =
283283
'Specify the executable path in VSCode.'
284+
config.language.fixIndent =
285+
'(VSCode only) Fix incorrect auto-indentation, such as incorrect indentation when line breaks occur within a string containing the word "function."'
286+
config.language.completeAnnotation =
287+
'(VSCode only) Automatically insert "---@ " after a line break following a annotation.'
284288
config.type.castNumberToInteger =
285289
'Allowed to assign the `number` type to the `integer` type.'
286290
config.type.weakUnionCheck =

locale/ja-jp/meta.lua

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ assert =
77
'引数 v が偽(i.e., `nil` または `false`)の場合、エラーを発生させる。それ以外の場合は、すべての引数を返えす。エラーが発生した際、`message` がエラーオブジェクトになる。`message` が指定されていない場合、デフォルトでエラーオブジェクトが `"assertion failed!"` になる。'
88

99
cgopt.collect =
10-
'完全なガベージコレクションサイクルを実行する。' -- TODO: 完全な?
10+
'完全なガベージコレクションサイクルを実行する。'
1111
cgopt.stop =
1212
'自動実行を停止する。'
1313
cgopt.restart =
1414
'自動実行を再開する。'
1515
cgopt.count =
1616
'利用されているメモリ量の合計をキロバイト単位で返す。'
1717
cgopt.step =
18-
'ガベージコレクションのステップを実行する。' -- TODO: arg?
18+
'ガベージコレクションのステップを実行する。'
1919
cgopt.setpause =
2020
'`pause` の値を設定する。'
2121
cgopt.setstepmul =
@@ -178,7 +178,6 @@ warn =
178178

179179
xpcall['=5.1'] =
180180
'新規メッセージハンドラ `err` を設定した上で、関数 `f` を指定された引数で保護モードで実行する。'
181-
182181
xpcall['>5.2'] =
183182
'新規メッセージハンドラ `msgh` を設定した上で、関数 `f` を指定された引数で保護モードで実行する。'
184183

locale/ja-jp/script.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -662,6 +662,8 @@ CLI_DOC_DONE =
662662
元データ: {}
663663
Markdown(例): {}
664664
]]
665+
CLI_DOC_WORKING = -- TODO: need translate!
666+
'Building docs...'
665667

666668
TYPE_ERROR_ENUM_GLOBAL_DISMATCH =
667669
'タイプ `{child}` は `{parent}` の列挙型に一致しません'

locale/ja-jp/setting.lua

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,10 @@ config.misc.parameters = -- TODO: need translate!
281281
'[Command line parameters](https://github.com/LuaLS/lua-telemetry-server/tree/master/method) when starting the language server in VSCode.'
282282
config.misc.executablePath = -- TODO: need translate!
283283
'Specify the executable path in VSCode.'
284+
config.language.fixIndent = -- TODO: need translate!
285+
'(VSCode only) Fix incorrect auto-indentation, such as incorrect indentation when line breaks occur within a string containing the word "function."'
286+
config.language.completeAnnotation = -- TODO: need translate!
287+
'(VSCode only) Automatically insert "---@ " after a line break following a annotation.'
284288
config.type.castNumberToInteger = -- TODO: need translate!
285289
'Allowed to assign the `number` type to the `integer` type.'
286290
config.type.weakUnionCheck = -- TODO: need translate!
@@ -301,6 +305,10 @@ When a parameter type is not annotated, it is inferred from the function's call
301305
302306
When this setting is `false`, the type of the parameter is `any` when it is not annotated.
303307
]]
308+
config.type.checkTableShape = -- TODO: need translate!
309+
[[
310+
Strictly check the shape of the table.
311+
]]
304312
config.doc.privateName = -- TODO: need translate!
305313
'Treat specific field names as private, e.g. `m_*` means `XXX.m_id` and `XXX.m_type` are private, witch can only be accessed in the class where the definition is located.'
306314
config.doc.protectedName = -- TODO: need translate!

locale/pt-br/setting.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,10 @@ config.misc.parameters = -- TODO: need translate!
281281
'[Command line parameters](https://github.com/LuaLS/lua-telemetry-server/tree/master/method) when starting the language service in VSCode.'
282282
config.misc.executablePath = -- TODO: need translate!
283283
'Specify the executable path in VSCode.'
284+
config.language.fixIndent = -- TODO: need translate!
285+
'(VSCode only) Fix incorrect auto-indentation, such as incorrect indentation when line breaks occur within a string containing the word "function."'
286+
config.language.completeAnnotation = -- TODO: need translate!
287+
'(VSCode only) Automatically insert "---@ " after a line break following a annotation.'
284288
config.type.castNumberToInteger = -- TODO: need translate!
285289
'Allowed to assign the `number` type to the `integer` type.'
286290
config.type.weakUnionCheck = -- TODO: need translate!

locale/zh-cn/setting.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,10 @@ config.misc.parameters =
280280
'VSCode中启动语言服务时的[命令行参数](https://luals.github.io/wiki/usage#arguments)。'
281281
config.misc.executablePath =
282282
'VSCode中指定可执行文件路径。'
283+
config.language.fixIndent = -- TODO: need translate!
284+
'(VSCode only) Fix incorrect auto-indentation, such as incorrect indentation when line breaks occur within a string containing the word "function."'
285+
config.language.completeAnnotation = -- TODO: need translate!
286+
'(VSCode only) Automatically insert "---@ " after a line break following a annotation.'
283287
config.type.castNumberToInteger =
284288
'允许将 `number` 类型赋给 `integer` 类型。'
285289
config.type.weakUnionCheck =

locale/zh-tw/script.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -658,6 +658,7 @@ CLI_DOC_DONE = -- TODO: need translate!
658658
'Document exporting completed!'
659659
CLI_DOC_WORKING =
660660
'正在產生文件...'
661+
661662
TYPE_ERROR_ENUM_GLOBAL_DISMATCH = -- TODO: need translate!
662663
'Type `{child}` cannot match enumeration type of `{parent}`'
663664
TYPE_ERROR_ENUM_GENERIC_UNSUPPORTED = -- TODO: need translate!

locale/zh-tw/setting.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,10 @@ config.misc.parameters =
280280
'VSCode中啟動語言伺服時的[命令列參數](https://luals.github.io/wiki/usage#arguments)。'
281281
config.misc.executablePath = -- TODO: need translate!
282282
'Specify the executable path in VSCode.'
283+
config.language.fixIndent = -- TODO: need translate!
284+
'(VSCode only) Fix incorrect auto-indentation, such as incorrect indentation when line breaks occur within a string containing the word "function."'
285+
config.language.completeAnnotation = -- TODO: need translate!
286+
'(VSCode only) Automatically insert "---@ " after a line break following a annotation.'
283287
config.type.castNumberToInteger =
284288
'允許將 `number` 類型賦值給 `integer` 類型。'
285289
config.type.weakUnionCheck =

0 commit comments

Comments
 (0)