From f8f9b68d3e89e602bcfe80fa18b2f5cb0846e846 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Thu, 9 Jun 2022 17:25:27 +0800 Subject: add locale --- doc/en-us/config.md | 5 +++-- doc/pt-br/config.md | 5 +++-- doc/zh-cn/config.md | 5 +++-- doc/zh-tw/config.md | 5 +++-- locale/en-us/setting.lua | 6 ++++++ locale/pt-br/setting.lua | 6 ++++++ locale/zh-cn/setting.lua | 6 ++++++ locale/zh-tw/setting.lua | 6 ++++++ 8 files changed, 36 insertions(+), 8 deletions(-) diff --git a/doc/en-us/config.md b/doc/en-us/config.md index 34d7181e..80167203 100644 --- a/doc/en-us/config.md +++ b/doc/en-us/config.md @@ -510,7 +510,7 @@ string # hint.await -**Missing description!!** +If the called function is marked `---@async`, prompt `await` at the call. ## type @@ -628,7 +628,8 @@ integer # hover.expandAlias -**Missing description!!** +Whether to expand the alias. For example, expands `---@alias myType boolean|number` appears as `boolean|number`, otherwise it appears as `myType'. + ## type diff --git a/doc/pt-br/config.md b/doc/pt-br/config.md index 34d7181e..80167203 100644 --- a/doc/pt-br/config.md +++ b/doc/pt-br/config.md @@ -510,7 +510,7 @@ string # hint.await -**Missing description!!** +If the called function is marked `---@async`, prompt `await` at the call. ## type @@ -628,7 +628,8 @@ integer # hover.expandAlias -**Missing description!!** +Whether to expand the alias. For example, expands `---@alias myType boolean|number` appears as `boolean|number`, otherwise it appears as `myType'. + ## type diff --git a/doc/zh-cn/config.md b/doc/zh-cn/config.md index 71df8f36..d248a5fe 100644 --- a/doc/zh-cn/config.md +++ b/doc/zh-cn/config.md @@ -510,7 +510,7 @@ string # hint.await -**Missing description!!** +如果调用的函数被标记为了 `---@async` ,则在调用处提示 `await` 。 ## type @@ -628,7 +628,8 @@ integer # hover.expandAlias -**Missing description!!** +是否展开别名。例如 `---@alias myType boolean|number` 展开后显示为 `boolean|number`,否则显示为 `myType`。 + ## type diff --git a/doc/zh-tw/config.md b/doc/zh-tw/config.md index c5d16ebf..eae28d50 100644 --- a/doc/zh-tw/config.md +++ b/doc/zh-tw/config.md @@ -510,7 +510,7 @@ string # hint.await -**Missing description!!** +If the called function is marked `---@async`, prompt `await` at the call. ## type @@ -628,7 +628,8 @@ integer # hover.expandAlias -**Missing description!!** +Whether to expand the alias. For example, expands `---@alias myType boolean|number` appears as `boolean|number`, otherwise it appears as `myType'. + ## type diff --git a/locale/en-us/setting.lua b/locale/en-us/setting.lua index 53fdf187..82892dc2 100644 --- a/locale/en-us/setting.lua +++ b/locale/en-us/setting.lua @@ -169,6 +169,10 @@ config.hover.previewFields = "When hovering to view a table, limits the maximum number of previews for fields." config.hover.enumsLimit = "When the value corresponds to multiple types, limit the number of types displaying." +config.hover.expandAlias = +[[ +Whether to expand the alias. For example, expands `---@alias myType boolean|number` appears as `boolean|number`, otherwise it appears as `myType'. +]] config.develop.enable = 'Developer mode. Do not enable, performance will be affected.' config.develop.debuggerPort = @@ -205,6 +209,8 @@ config.hint.arrayIndex.Auto = 'Show hints only when the table is greater than 3 items, or the table is a mixed table.' config.hint.arrayIndex.Disable = 'Disable hints of array index.' +config.hint.await = +'If the called function is marked `---@async`, prompt `await` at the call.' config.format.enable = 'Enable code formatter.' config.telemetry.enable = diff --git a/locale/pt-br/setting.lua b/locale/pt-br/setting.lua index 9605f09b..50ec9473 100644 --- a/locale/pt-br/setting.lua +++ b/locale/pt-br/setting.lua @@ -169,6 +169,10 @@ config.hover.previewFields = -- TODO: need translate! "When hovering to view a table, limits the maximum number of previews for fields." config.hover.enumsLimit = -- TODO: need translate! "When the value corresponds to multiple types, limit the number of types displaying." +config.hover.expandAlias = -- TODO: need translate! +[[ +Whether to expand the alias. For example, expands `---@alias myType boolean|number` appears as `boolean|number`, otherwise it appears as `myType'. +]] config.develop.enable = -- TODO: need translate! 'Developer mode. Do not enable, performance will be affected.' config.develop.debuggerPort = -- TODO: need translate! @@ -205,6 +209,8 @@ config.hint.arrayIndex.Auto = -- TODO: need translate! 'Show hints only when the table is greater than 3 items, or the table is a mixed table.' config.hint.arrayIndex.Disable = -- TODO: need translate! 'Disable hints of array index.' +config.hint.await = -- TODO: need translate! +'If the called function is marked `---@async`, prompt `await` at the call.' config.format.enable = -- TODO: need translate! 'Enable code formatter.' config.telemetry.enable = -- TODO: need translate! diff --git a/locale/zh-cn/setting.lua b/locale/zh-cn/setting.lua index 6b8cce61..1c538c60 100644 --- a/locale/zh-cn/setting.lua +++ b/locale/zh-cn/setting.lua @@ -169,6 +169,10 @@ config.hover.previewFields = "悬停提示查看表时,限制表内字段的最大预览数量。" config.hover.enumsLimit = "当值对应多个类型时,限制类型的显示数量。" +config.hover.expandAlias = +[[ +是否展开别名。例如 `---@alias myType boolean|number` 展开后显示为 `boolean|number`,否则显示为 `myType`。 +]] config.develop.enable = '开发者模式。请勿开启,会影响性能。' config.develop.debuggerPort = @@ -205,6 +209,8 @@ config.hint.arrayIndex.Auto = '只有表大于3项,或者表是混合类型时才进行提示。' config.hint.arrayIndex.Disable = '禁用数组索引提示。' +config.hint.await = +'如果调用的函数被标记为了 `---@async` ,则在调用处提示 `await` 。' config.format.enable = '启用代码格式化程序。' config.telemetry.enable = diff --git a/locale/zh-tw/setting.lua b/locale/zh-tw/setting.lua index 210b9eb5..d8af5dfd 100644 --- a/locale/zh-tw/setting.lua +++ b/locale/zh-tw/setting.lua @@ -169,6 +169,10 @@ config.hover.previewFields = "懸浮提示檢視表時,限制表內欄位的最大預覽數量。" config.hover.enumsLimit = "當值對應多個型別時,限制型別的顯示數量。" +config.hover.expandAlias = -- TODO: need translate! +[[ +Whether to expand the alias. For example, expands `---@alias myType boolean|number` appears as `boolean|number`, otherwise it appears as `myType'. +]] config.develop.enable = '開發者模式。請勿開啟,會影響效能。' config.develop.debuggerPort = @@ -205,6 +209,8 @@ config.hint.arrayIndex.Auto = '只有表大於3項,或者表是混合型別時才進行提示。' config.hint.arrayIndex.Disable = '停用陣列索引提示。' +config.hint.await = -- TODO: need translate! +'If the called function is marked `---@async`, prompt `await` at the call.' config.format.enable = '啟用程式碼格式化程式。' config.telemetry.enable = -- cgit v1.2.3