diff --git a/compiler/erg_compiler/error.rs b/compiler/erg_compiler/error.rs index b26267d5..722c5a75 100644 --- a/compiler/erg_compiler/error.rs +++ b/compiler/erg_compiler/error.rs @@ -1353,10 +1353,10 @@ impl LowerError { AssignError, loc, switch_lang!( - "japanese" => format!("変数{YELLOW}{name}{RESET}に再代入されています"), - "simplified_chinese" => format!("不能为变量{YELLOW}{name}{RESET}分配两次"), - "traditional_chinese" => format!("不能為變量{YELLOW}{name}{RESET}分配兩次"), - "english" => format!("cannot assign twice to the variable {YELLOW}{name}{RESET}"), + "japanese" => format!("変数{YELLOW}{name}{RESET}に複数回代入することはできません"), + "simplified_chinese" => format!("不能为变量{YELLOW}{name}{RESET}分配多次"), + "traditional_chinese" => format!("不能為變量{YELLOW}{name}{RESET}分配多次"), + "english" => format!("variable {YELLOW}{name}{RESET} cannot be assigned more than once"), ), None, ),