diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-11-16 15:20:25 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-16 15:20:25 +0800 |
commit | 18b3aab90545bb2646cd7ffab896fb2baca24d92 (patch) | |
tree | 6ba81cf27891cd3f622e6d1961dc5e1b6bc43d6a /locale/en-us/script.lua | |
parent | 1d7931741eb7b91178f2ab94135f5cdc2c66c497 (diff) | |
parent | 47cfdcfb46144a8982a8e258c593cb5d68536666 (diff) | |
download | lua-language-server-18b3aab90545bb2646cd7ffab896fb2baca24d92.zip |
Merge pull request #1703 from carsakiller/return-diagnosis-descriptions-1701
fix: en-us return diagnosis descriptions
Diffstat (limited to 'locale/en-us/script.lua')
-rw-r--r-- | locale/en-us/script.lua | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/locale/en-us/script.lua b/locale/en-us/script.lua index 0361ee77..16826aa9 100644 --- a/locale/en-us/script.lua +++ b/locale/en-us/script.lua @@ -129,17 +129,17 @@ DIAG_UNKNOWN_CAST_VARIABLE = DIAG_CAST_TYPE_MISMATCH = 'Cannot convert `{def}` to `{ref}`。' DIAG_MISSING_RETURN_VALUE = -'At least {min} return values are required, but here only {rmax} values are returned.' +'Annotations specify that at least {min} return value(s) are required, found {rmax} returned here instead.' DIAG_MISSING_RETURN_VALUE_RANGE = -'At least {min} return values are required, but here only {rmin} to {rmax} values are returned.' +'Annotations specify that at least {min} return value(s) are required, found {rmin} to {rmax} returned here instead.' DIAG_REDUNDANT_RETURN_VALUE = -'At most {max} values returned, but the {rmax}th value was returned here.' +'Annotations specify that at most {max} return value(s) are required, found {rmax} returned here instead.' DIAG_REDUNDANT_RETURN_VALUE_RANGE = -'At most {max} values returned, but {rmin}th to {rmax}th values were returned here.' +'Annotations specify that at most {max} return value(s) are required, found {rmin} to {rmax} returned here instead.' DIAG_MISSING_RETURN = -'Return value is required here.' +'Annotations specify that a return value is required here.' DIAG_RETURN_TYPE_MISMATCH = -'The type of the {index} return value is `{def}`, but the actual return is `{ref}`.' +'Annotations specify that return value #{index} has a type of `{def}`, returning value of type `{ref}` here instead.' DIAG_UNKNOWN_OPERATOR = 'Unknown operator `{}`.' DIAG_UNREACHABLE_CODE = |