summaryrefslogtreecommitdiff
path: root/locale/en-us/script.lua
diff options
context:
space:
mode:
Diffstat (limited to 'locale/en-us/script.lua')
-rw-r--r--locale/en-us/script.lua7
1 files changed, 4 insertions, 3 deletions
diff --git a/locale/en-us/script.lua b/locale/en-us/script.lua
index b81723b4..a03aec0a 100644
--- a/locale/en-us/script.lua
+++ b/locale/en-us/script.lua
@@ -45,6 +45,7 @@ DIAG_DIFFERENT_REQUIRES = 'The same file is required with different names.'
DIAG_REDUNDANT_RETURN = 'Redundant return.'
DIAG_AWAIT_IN_SYNC = 'Async function can only be called in async function.'
DIAG_NOT_YIELDABLE = 'The {}th parameter of this function was not marked as yieldable, but an async function was passed in. (Use `---@param name async fun()` to mark as yieldable)'
+DIAG_DISCARD_RETURNS = 'The return values of this function cannot be discarded.'
DIAG_CIRCLE_DOC_CLASS = 'Circularly inherited classes.'
DIAG_DOC_FIELD_NO_CLASS = 'The field must be defined after the class.'
@@ -56,7 +57,7 @@ DIAG_UNDEFINED_DOC_NAME = 'Undefined type or alias `{}`.'
DIAG_UNDEFINED_DOC_PARAM = 'Undefined param `{}`.'
DIAG_UNKNOWN_DIAG_CODE = 'Unknown diagnostic code `{}`.'
-MWS_NOT_SUPPORT = '{} dose not support multi workspace for now, I may need to restart to support the new workspace ...'
+MWS_NOT_SUPPORT = '{} does not support multi workspace for now, I may need to restart to support the new workspace ...'
MWS_RESTART = 'Restart'
MWS_NOT_COMPLETE = 'Workspace is not complete yet. You may try again later...'
MWS_COMPLETE = 'Workspace is complete now. You may try again...'
@@ -77,7 +78,7 @@ PARSER_UNKNOWN_SYMBOL = 'Unexpected symbol `{symbol}`.'
PARSER_MISS_SYMBOL = 'Missed symbol `{symbol}`.'
PARSER_MISS_ESC_X = 'Should be 2 hexadecimal digits.'
PARSER_UTF8_SMALL = 'At least 1 hexadecimal digit.'
-PARSER_UTF8_MAX = 'Should between {min} and {max} .'
+PARSER_UTF8_MAX = 'Should be between {min} and {max} .'
PARSER_ERR_ESC = 'Invalid escape sequence.'
PARSER_MUST_X16 = 'Should be hexadecimal digits.'
PARSER_MISS_EXPONENT = 'Missed digits for the exponent.'
@@ -97,7 +98,7 @@ PARSER_UNSUPPORT_SYMBOL = '{version} does not support this grammar.'
PARSER_UNEXPECT_DOTS = 'Cannot use `...` outside a vararg function.'
PARSER_UNEXPECT_SYMBOL = 'Unexpected symbol `{symbol}` .'
PARSER_UNKNOWN_TAG = 'Unknown attribute.'
-PARSER_MULTI_TAG = 'Dose not support multi attributes.'
+PARSER_MULTI_TAG = 'Does not support multi attributes.'
PARSER_UNEXPECT_LFUNC_NAME = 'Local function can only use identifiers as name.'
PARSER_UNEXPECT_EFUNC_NAME = 'Function as expression cannot be named.'
PARSER_ERR_LCOMMENT_END = 'Multi-line annotations should be closed by `{symbol}` .'