no need to explicitly translate title, Fmt does it for us
parent
d8ec4704e4
commit
558ece4a8e
|
@ -139,7 +139,7 @@ func BoxedWithConfig(cfg box.Config, st style.Enum, title string, text string, a
|
|||
title = Sprintf(st, title)
|
||||
}
|
||||
// need to make sure no newlines are in the title otherwise box-cli-maker panics
|
||||
title = translate.T(strings.ReplaceAll(title, "\n", ""))
|
||||
title = strings.ReplaceAll(title, "\n", "")
|
||||
boxedCommon(String, cfg, title, text, a...)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue