From 2548e6d5f5744d38230866e07c1eaec1c16a1302 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Tue, 28 Jun 2022 21:25:21 +0800 Subject: update locale --- locale/zh-tw/script.lua | 12 ++++++++++++ locale/zh-tw/setting.lua | 8 ++++++++ 2 files changed, 20 insertions(+) (limited to 'locale/zh-tw') diff --git a/locale/zh-tw/script.lua b/locale/zh-tw/script.lua index df02d094..14716598 100644 --- a/locale/zh-tw/script.lua +++ b/locale/zh-tw/script.lua @@ -128,6 +128,18 @@ DIAG_UNKNOWN_CAST_VARIABLE = '未知的類型轉換變數 `{}`.' DIAG_CAST_TYPE_MISMATCH = '不能將 `{ref}` 轉換為 `{def}`。' +DIAG_MISSING_RETURN_VALUE = -- TODO: need translate! +'At least {min} return values are required, but here only {rmax} values are returned.' +DIAG_MISSING_RETURN_VALUE_RANGE = -- TODO: need translate! +'At least {min} return values are required, but here only {rmin} to {rmax} values are returned.' +DIAG_REDUNDANT_RETURN_VALUE = -- TODO: need translate! +'At most {max} values returned, but the {rmax}th value was returned here.' +DIAG_REDUNDANT_RETURN_VALUE_RANGE = -- TODO: need translate! +'At most {max} values returned, but {rmin}th to {rmax}th values were returned here.' +DIAG_MISSING_RETURN = -- TODO: need translate! +'Return value is required here.' +DIAG_RETURN_TYPE_MISMATCH = -- TODO: need translate! +'The type of the {index} return value is `{def}`, but the actual return is `{ref}`.' MWS_NOT_SUPPORT = '{} 目前還不支援多工作目錄,我可能需要重新啟動才能支援新的工作目錄...' diff --git a/locale/zh-tw/setting.lua b/locale/zh-tw/setting.lua index 108c642d..9369bbcd 100644 --- a/locale/zh-tw/setting.lua +++ b/locale/zh-tw/setting.lua @@ -235,6 +235,14 @@ config.hint.arrayIndex.Disable = '停用陣列索引提示。' config.hint.await = '如果呼叫的函數被標記為了 `---@async`,則在呼叫處提示 `await`。' +config.hint.semicolon = -- TODO: need translate! +'If there is no semicolon at the end of the statement, display a virtual semicolon.' +config.hint.semicolon.All = -- TODO: need translate! +'All statements display virtual semicolons.' +config.hint.semicolon.SameLine = -- TODO: need translate! +'When two statements are on the same line, display a semicolon between them.' +config.hint.semicolon.Disable = -- TODO: need translate! +'Disable virtual semicolons.' config.format.enable = '啟用程式碼格式化程式。' config.format.defaultConfig = -- cgit v1.2.3