Skip to content

Commit f8f9b68

Browse files
committed
add locale
1 parent afb4f83 commit f8f9b68

File tree

8 files changed

+36
-8
lines changed

8 files changed

+36
-8
lines changed

doc/en-us/config.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ string
510510

511511
# hint.await
512512

513-
**Missing description!!**
513+
If the called function is marked `---@async`, prompt `await` at the call.
514514

515515
## type
516516

@@ -628,7 +628,8 @@ integer
628628

629629
# hover.expandAlias
630630

631-
**Missing description!!**
631+
Whether to expand the alias. For example, expands `---@alias myType boolean|number` appears as `boolean|number`, otherwise it appears as `myType'.
632+
632633

633634
## type
634635

doc/pt-br/config.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ string
510510

511511
# hint.await
512512

513-
**Missing description!!**
513+
If the called function is marked `---@async`, prompt `await` at the call.
514514

515515
## type
516516

@@ -628,7 +628,8 @@ integer
628628

629629
# hover.expandAlias
630630

631-
**Missing description!!**
631+
Whether to expand the alias. For example, expands `---@alias myType boolean|number` appears as `boolean|number`, otherwise it appears as `myType'.
632+
632633

633634
## type
634635

doc/zh-cn/config.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ string
510510

511511
# hint.await
512512

513-
**Missing description!!**
513+
如果调用的函数被标记为了 `---@async` ,则在调用处提示 `await`
514514

515515
## type
516516

@@ -628,7 +628,8 @@ integer
628628

629629
# hover.expandAlias
630630

631-
**Missing description!!**
631+
是否展开别名。例如 `---@alias myType boolean|number` 展开后显示为 `boolean|number`,否则显示为 `myType`
632+
632633

633634
## type
634635

doc/zh-tw/config.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ string
510510

511511
# hint.await
512512

513-
**Missing description!!**
513+
If the called function is marked `---@async`, prompt `await` at the call.
514514

515515
## type
516516

@@ -628,7 +628,8 @@ integer
628628

629629
# hover.expandAlias
630630

631-
**Missing description!!**
631+
Whether to expand the alias. For example, expands `---@alias myType boolean|number` appears as `boolean|number`, otherwise it appears as `myType'.
632+
632633

633634
## type
634635

locale/en-us/setting.lua

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,10 @@ config.hover.previewFields =
169169
"When hovering to view a table, limits the maximum number of previews for fields."
170170
config.hover.enumsLimit =
171171
"When the value corresponds to multiple types, limit the number of types displaying."
172+
config.hover.expandAlias =
173+
[[
174+
Whether to expand the alias. For example, expands `---@alias myType boolean|number` appears as `boolean|number`, otherwise it appears as `myType'.
175+
]]
172176
config.develop.enable =
173177
'Developer mode. Do not enable, performance will be affected.'
174178
config.develop.debuggerPort =
@@ -205,6 +209,8 @@ config.hint.arrayIndex.Auto =
205209
'Show hints only when the table is greater than 3 items, or the table is a mixed table.'
206210
config.hint.arrayIndex.Disable =
207211
'Disable hints of array index.'
212+
config.hint.await =
213+
'If the called function is marked `---@async`, prompt `await` at the call.'
208214
config.format.enable =
209215
'Enable code formatter.'
210216
config.telemetry.enable =

locale/pt-br/setting.lua

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,10 @@ config.hover.previewFields = -- TODO: need translate!
169169
"When hovering to view a table, limits the maximum number of previews for fields."
170170
config.hover.enumsLimit = -- TODO: need translate!
171171
"When the value corresponds to multiple types, limit the number of types displaying."
172+
config.hover.expandAlias = -- TODO: need translate!
173+
[[
174+
Whether to expand the alias. For example, expands `---@alias myType boolean|number` appears as `boolean|number`, otherwise it appears as `myType'.
175+
]]
172176
config.develop.enable = -- TODO: need translate!
173177
'Developer mode. Do not enable, performance will be affected.'
174178
config.develop.debuggerPort = -- TODO: need translate!
@@ -205,6 +209,8 @@ config.hint.arrayIndex.Auto = -- TODO: need translate!
205209
'Show hints only when the table is greater than 3 items, or the table is a mixed table.'
206210
config.hint.arrayIndex.Disable = -- TODO: need translate!
207211
'Disable hints of array index.'
212+
config.hint.await = -- TODO: need translate!
213+
'If the called function is marked `---@async`, prompt `await` at the call.'
208214
config.format.enable = -- TODO: need translate!
209215
'Enable code formatter.'
210216
config.telemetry.enable = -- TODO: need translate!

locale/zh-cn/setting.lua

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,10 @@ config.hover.previewFields =
169169
"悬停提示查看表时,限制表内字段的最大预览数量。"
170170
config.hover.enumsLimit =
171171
"当值对应多个类型时,限制类型的显示数量。"
172+
config.hover.expandAlias =
173+
[[
174+
是否展开别名。例如 `---@alias myType boolean|number` 展开后显示为 `boolean|number`,否则显示为 `myType`。
175+
]]
172176
config.develop.enable =
173177
'开发者模式。请勿开启,会影响性能。'
174178
config.develop.debuggerPort =
@@ -205,6 +209,8 @@ config.hint.arrayIndex.Auto =
205209
'只有表大于3项,或者表是混合类型时才进行提示。'
206210
config.hint.arrayIndex.Disable =
207211
'禁用数组索引提示。'
212+
config.hint.await =
213+
'如果调用的函数被标记为了 `---@async` ,则在调用处提示 `await` 。'
208214
config.format.enable =
209215
'启用代码格式化程序。'
210216
config.telemetry.enable =

locale/zh-tw/setting.lua

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,10 @@ config.hover.previewFields =
169169
"懸浮提示檢視表時,限制表內欄位的最大預覽數量。"
170170
config.hover.enumsLimit =
171171
"當值對應多個型別時,限制型別的顯示數量。"
172+
config.hover.expandAlias = -- TODO: need translate!
173+
[[
174+
Whether to expand the alias. For example, expands `---@alias myType boolean|number` appears as `boolean|number`, otherwise it appears as `myType'.
175+
]]
172176
config.develop.enable =
173177
'開發者模式。請勿開啟,會影響效能。'
174178
config.develop.debuggerPort =
@@ -205,6 +209,8 @@ config.hint.arrayIndex.Auto =
205209
'只有表大於3項,或者表是混合型別時才進行提示。'
206210
config.hint.arrayIndex.Disable =
207211
'停用陣列索引提示。'
212+
config.hint.await = -- TODO: need translate!
213+
'If the called function is marked `---@async`, prompt `await` at the call.'
208214
config.format.enable =
209215
'啟用程式碼格式化程式。'
210216
config.telemetry.enable =

0 commit comments

Comments
 (0)