summaryrefslogtreecommitdiff
path: root/locale
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2023-08-22 17:08:39 +0800
committer最萌小汐 <sumneko@hotmail.com>2023-08-22 17:08:39 +0800
commitcb16010fbb4128e2a5a31013e02b8cc4a4318be8 (patch)
tree0be2ac73f9bf987ea33fc070201d1eb238839dc3 /locale
parenta5c3b64c217fb2691a23ca3b849567474b653ddf (diff)
downloadlua-language-server-cb16010fbb4128e2a5a31013e02b8cc4a4318be8.zip
fix wrong `missing-fields` with union types
fix #2252
Diffstat (limited to 'locale')
-rw-r--r--locale/en-us/script.lua2
-rw-r--r--locale/pt-br/script.lua2
-rw-r--r--locale/zh-cn/script.lua2
-rw-r--r--locale/zh-tw/script.lua2
4 files changed, 4 insertions, 4 deletions
diff --git a/locale/en-us/script.lua b/locale/en-us/script.lua
index 202d98d7..56e5fd87 100644
--- a/locale/en-us/script.lua
+++ b/locale/en-us/script.lua
@@ -169,7 +169,7 @@ DIAG_INVISIBLE_PACKAGE =
DIAG_GLOBAL_ELEMENT =
'Element is global.'
DIAG_MISSING_FIELDS =
-'Missing fields: {}'
+'Missing required fields in type `{1}`: {2}'
DIAG_INJECT_FIELD =
'Fields cannot be injected into the reference of `{class}` for `{field}`. {fix}'
DIAG_INJECT_FIELD_FIX_CLASS =
diff --git a/locale/pt-br/script.lua b/locale/pt-br/script.lua
index 05730d56..2357aa50 100644
--- a/locale/pt-br/script.lua
+++ b/locale/pt-br/script.lua
@@ -169,7 +169,7 @@ DIAG_INVISIBLE_PACKAGE = -- TODO: need translate!
DIAG_GLOBAL_ELEMENT = -- TODO: need translate!
'Element is global.'
DIAG_MISSING_FIELDS = -- TODO: need translate!
-'Missing fields: {}'
+'Missing required fields in type `{1}`: {2}'
DIAG_INJECT_FIELD = -- TODO: need translate!
'Fields cannot be injected into the reference of `{class}` for `{field}`. {fix}'
DIAG_INJECT_FIELD_FIX_CLASS = -- TODO: need translate!
diff --git a/locale/zh-cn/script.lua b/locale/zh-cn/script.lua
index b59411a9..6459a104 100644
--- a/locale/zh-cn/script.lua
+++ b/locale/zh-cn/script.lua
@@ -169,7 +169,7 @@ DIAG_INVISIBLE_PACKAGE =
DIAG_GLOBAL_ELEMENT =
'全局变量。'
DIAG_MISSING_FIELDS =
-'缺少字段: {}'
+'缺少类型 `{1}` 的必要字段: {2}'
DIAG_INJECT_FIELD =
'不能在 `{class}` 的引用中注入字段 `{field}` 。{fix}'
DIAG_INJECT_FIELD_FIX_CLASS =
diff --git a/locale/zh-tw/script.lua b/locale/zh-tw/script.lua
index 80c4bec2..43c064b2 100644
--- a/locale/zh-tw/script.lua
+++ b/locale/zh-tw/script.lua
@@ -169,7 +169,7 @@ DIAG_INVISIBLE_PACKAGE = -- TODO: need translate!
DIAG_GLOBAL_ELEMENT = -- TODO: need translate!
'Element is global.'
DIAG_MISSING_FIELDS = -- TODO: need translate!
-'Missing fields: {}'
+'Missing required fields in type `{1}`: {2}'
DIAG_INJECT_FIELD = -- TODO: need translate!
'Fields cannot be injected into the reference of `{class}` for `{field}`. {fix}'
DIAG_INJECT_FIELD_FIX_CLASS = -- TODO: need translate!