summaryrefslogtreecommitdiff
path: root/locale/zh-cn
diff options
context:
space:
mode:
authorThomas Wetzlmaier <thomas.wetzlmaier@scch.at>2023-05-11 16:32:53 +0200
committerGitHub <noreply@github.com>2023-05-11 16:32:53 +0200
commitd2a08abb38a413dddd19edb69971d2b0657bff6f (patch)
treebea4d5331e05565216e2adfbd341b280176abdde /locale/zh-cn
parentd00d9082dfdd49088a6776282471ced6d5d2361e (diff)
downloadlua-language-server-d2a08abb38a413dddd19edb69971d2b0657bff6f.zip
Annotation rule for exported local functions
Annotation for the following local function func1 is required. local mod = { } local function func1() end mod.Func1 = func1 return mod;
Diffstat (limited to 'locale/zh-cn')
-rw-r--r--locale/zh-cn/script.lua6
-rw-r--r--locale/zh-cn/setting.lua2
2 files changed, 8 insertions, 0 deletions
diff --git a/locale/zh-cn/script.lua b/locale/zh-cn/script.lua
index c100e2d6..a898c4f0 100644
--- a/locale/zh-cn/script.lua
+++ b/locale/zh-cn/script.lua
@@ -120,6 +120,12 @@ DIAG_MISSING_GLOBAL_DOC_PARAM = -- TODO: need translate!
'Missing @param annotation for parameter `{}` in global function `{}`.'
DIAG_MISSING_GLOBAL_DOC_RETURN = -- TODO: need translate!
'Missing @return annotation at index `{}` in global function `{}`.'
+DIAG_MISSING_LOCAL_EXPORT_DOC_COMMENT = -- TODO: need translate!
+'Missing comment for exported local function `{}`.'
+DIAG_MISSING_LOCAL_EXPORT_DOC_PARAM = -- TODO: need translate!
+'Missing @param annotation for parameter `{}` in exported local function `{}`.'
+DIAG_MISSING_LOCAL_EXPORT_DOC_RETURN = -- TODO: need translate!
+'Missing @return annotation at index `{}` in exported local function `{}`.'
DIAG_INCOMPLETE_SIGNATURE_DOC_PARAM = -- TODO: need translate!
'Incomplete signature. Missing @param annotation for parameter `{}` in function `{}`.'
DIAG_INCOMPLETE_SIGNATURE_DOC_RETURN = -- TODO: need translate!
diff --git a/locale/zh-cn/setting.lua b/locale/zh-cn/setting.lua
index 1755d76f..b407ca14 100644
--- a/locale/zh-cn/setting.lua
+++ b/locale/zh-cn/setting.lua
@@ -380,6 +380,8 @@ config.diagnostics['invisible'] = -- TODO: need translate!
'Enable diagnostics for accesses to fields which are invisible.'
config.diagnostics['missing-global-doc'] = -- TODO: need translate!
'Missing annotations for globals! Global functions must have a comment and annotations for all parameters and return values.'
+config.diagnostics['missing-local-export-doc'] = -- TODO: need translate!
+'Missing annotations for exported locals! Exported local functions must have a comment and annotations for all parameters and return values.'
config.diagnostics['missing-parameter'] = -- TODO: need translate!
'Enable diagnostics for function calls where the number of arguments is less than the number of annotated function parameters.'
config.diagnostics['missing-return'] = -- TODO: need translate!