mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-04 02:39:20 +00:00
feat(erg_common): add Stylize
trait
This commit is contained in:
parent
65121420e3
commit
8df5785ca7
5 changed files with 261 additions and 124 deletions
|
@ -358,27 +358,27 @@ impl EffectError {
|
|||
"japanese" => {
|
||||
let mut s = StyledStrings::default();
|
||||
s.push_str("変数の末尾に");
|
||||
s.push_str_with_color_and_attribute("!", WARN, ATTR);
|
||||
s.push_str_with_color_and_attr("!", WARN, ATTR);
|
||||
s.push_str("をつけてください");
|
||||
s
|
||||
},
|
||||
"simplified_chinese" => {
|
||||
let mut s = StyledStrings::default();
|
||||
s.push_str("请在变量名后加上");
|
||||
s.push_str_with_color_and_attribute("!", WARN, ATTR);
|
||||
s.push_str_with_color_and_attr("!", WARN, ATTR);
|
||||
s
|
||||
},
|
||||
"traditional_chinese" => {
|
||||
let mut s = StyledStrings::default();
|
||||
s.push_str("請在變量名後加上");
|
||||
s.push_str_with_color_and_attribute("!", WARN, ATTR);
|
||||
s.push_str_with_color_and_attr("!", WARN, ATTR);
|
||||
s
|
||||
},
|
||||
"english" => {
|
||||
|
||||
let mut s = StyledStrings::default();
|
||||
s.push_str("add ");
|
||||
s.push_str_with_color_and_attribute("!", WARN, ATTR);
|
||||
s.push_str_with_color_and_attr("!", WARN, ATTR);
|
||||
s.push_str(" to the end of the variable name");
|
||||
s
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue