mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-28 20:14:45 +00:00
fix: modify Chinese error information
This commit is contained in:
parent
d707da8ba6
commit
47718b43e1
3 changed files with 52 additions and 52 deletions
|
@ -1205,7 +1205,7 @@ passed keyword args: {kw_args_len}"
|
|||
vec![SubMessage::only_loc(loc)],
|
||||
switch_lang!(
|
||||
"japanese" => format!("型が期待されましたが、{tp}は型ではありません"),
|
||||
"simplified_chinese" => format!("期望一个类型,但是得到了{tp}"),
|
||||
"simplified_chinese" => format!("期望类型,但是得到了{tp}"),
|
||||
"traditional_chinese" => format!("期望一個類型,但是得到了{tp}"),
|
||||
"english" => format!("expected a type, but got {tp}"),
|
||||
),
|
||||
|
|
|
@ -79,7 +79,7 @@ impl DeserializeError {
|
|||
"{expect}型オブジェクトを予期しましたが、 読み込んだオブジェクトは{found}型です",
|
||||
),
|
||||
"simplified_chinese" => format!(
|
||||
"期望一个{expect}对象,但反序列化的对象是{found}",
|
||||
"期望{expect}对象,但反序列化的对象是{found}",
|
||||
),
|
||||
"traditional_chinese" => format!(
|
||||
"期望一個{expect}對象,但反序列化的對像是{found}",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue