diff options
Diffstat (limited to 'locale')
-rw-r--r-- | locale/en-us/script.lua | 6 | ||||
-rw-r--r-- | locale/pt-br/script.lua | 6 | ||||
-rw-r--r-- | locale/zh-cn/script.lua | 6 | ||||
-rw-r--r-- | locale/zh-tw/script.lua | 6 |
4 files changed, 16 insertions, 8 deletions
diff --git a/locale/en-us/script.lua b/locale/en-us/script.lua index c9cb991c..9fceac00 100644 --- a/locale/en-us/script.lua +++ b/locale/en-us/script.lua @@ -609,10 +609,12 @@ TYPE_ERROR_TABLE_NO_FIELD = 'Field `{key}` does not exist in the table' TYPE_ERROR_TABLE_FIELD_DISMATCH = 'The type of field `{key}` is `{child}`, which cannot match `{parent}`' -TYPE_ERROR_UNION_ALL_DISMATCH = +TYPE_ERROR_CHILD_ALL_DISMATCH = 'All subtypes in `{child}` cannot match `{parent}`' +TYPE_ERROR_PARENT_ALL_DISMATCH = +'`{child}` cannot match any subtypes in `{parent}`' TYPE_ERROR_UNION_DISMATCH = -'`{child}` in union type cannot match `{parent}`' +'`{child}` cannot match `{parent}`' TYPE_ERROR_OPTIONAL_DISMATCH = 'Optional type cannot match `{parent}`' TYPE_ERROR_NUMBER_LITERAL_TO_INTEGER = diff --git a/locale/pt-br/script.lua b/locale/pt-br/script.lua index 8f01f949..a6adc651 100644 --- a/locale/pt-br/script.lua +++ b/locale/pt-br/script.lua @@ -609,10 +609,12 @@ TYPE_ERROR_TABLE_NO_FIELD = -- TODO: need translate! 'Field `{key}` does not exist in the table' TYPE_ERROR_TABLE_FIELD_DISMATCH = -- TODO: need translate! 'The type of field `{key}` is `{child}`, which cannot match `{parent}`' -TYPE_ERROR_UNION_ALL_DISMATCH = -- TODO: need translate! +TYPE_ERROR_CHILD_ALL_DISMATCH = -- TODO: need translate! 'All subtypes in `{child}` cannot match `{parent}`' +TYPE_ERROR_PARENT_ALL_DISMATCH = -- TODO: need translate! +'`{child}` cannot match any subtypes in `{parent}`' TYPE_ERROR_UNION_DISMATCH = -- TODO: need translate! -'`{child}` in union type cannot match `{parent}`' +'`{child}` cannot match `{parent}`' TYPE_ERROR_OPTIONAL_DISMATCH = -- TODO: need translate! 'Optional type cannot match `{parent}`' TYPE_ERROR_NUMBER_LITERAL_TO_INTEGER = -- TODO: need translate! diff --git a/locale/zh-cn/script.lua b/locale/zh-cn/script.lua index 5c86a1d0..86815da3 100644 --- a/locale/zh-cn/script.lua +++ b/locale/zh-cn/script.lua @@ -609,10 +609,12 @@ TYPE_ERROR_TABLE_NO_FIELD = '表中不存在字段 `{key}`' TYPE_ERROR_TABLE_FIELD_DISMATCH = '字段 `{key}` 的类型为 `{child}`,无法匹配 `{parent}`' -TYPE_ERROR_UNION_ALL_DISMATCH = +TYPE_ERROR_CHILD_ALL_DISMATCH = '`{child}` 中的所有子类型均无法匹配 `{parent}`' +TYPE_ERROR_PARENT_ALL_DISMATCH = +'`{child}` 无法匹配 `{parent}` 中的任何子类' TYPE_ERROR_UNION_DISMATCH = -'联合类型中的 `{child}` 无法匹配 `{parent}`' +'`{child}` 无法匹配 `{parent}`' TYPE_ERROR_OPTIONAL_DISMATCH = '可选类型无法匹配 `{parent}`' TYPE_ERROR_NUMBER_LITERAL_TO_INTEGER = diff --git a/locale/zh-tw/script.lua b/locale/zh-tw/script.lua index 36615a05..060ae8ab 100644 --- a/locale/zh-tw/script.lua +++ b/locale/zh-tw/script.lua @@ -609,10 +609,12 @@ TYPE_ERROR_TABLE_NO_FIELD = -- TODO: need translate! 'Field `{key}` does not exist in the table' TYPE_ERROR_TABLE_FIELD_DISMATCH = -- TODO: need translate! 'The type of field `{key}` is `{child}`, which cannot match `{parent}`' -TYPE_ERROR_UNION_ALL_DISMATCH = -- TODO: need translate! +TYPE_ERROR_CHILD_ALL_DISMATCH = -- TODO: need translate! 'All subtypes in `{child}` cannot match `{parent}`' +TYPE_ERROR_PARENT_ALL_DISMATCH = -- TODO: need translate! +'`{child}` cannot match any subtypes in `{parent}`' TYPE_ERROR_UNION_DISMATCH = -- TODO: need translate! -'`{child}` in union type cannot match `{parent}`' +'`{child}` cannot match `{parent}`' TYPE_ERROR_OPTIONAL_DISMATCH = -- TODO: need translate! 'Optional type cannot match `{parent}`' TYPE_ERROR_NUMBER_LITERAL_TO_INTEGER = -- TODO: need translate! |