no need to explicitly translate title, Fmt does it for us

pull/12961/head
Sharif Elgamal 2021-11-15 17:03:09 -08:00
parent d8ec4704e4
commit 558ece4a8e
1 changed files with 1 additions and 1 deletions

View File

@ -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...)
}