chore(tui): update readme, fix usage

This commit is contained in:
lhpqaq
2026-02-16 00:04:04 +08:00
parent f31f7f701a
commit 020df41efe
4 changed files with 12 additions and 2 deletions

View File

@@ -3,7 +3,7 @@ package tui
// i18n provides a simple internationalization system for the TUI.
// Supported locales: "zh" (Chinese, default), "en" (English).
var currentLocale = "zh"
var currentLocale = "en"
// SetLocale changes the active locale.
func SetLocale(locale string) {

View File

@@ -231,7 +231,7 @@ func (m usageTabModel) renderContent() string {
apiToks := int64(getFloat(apiMap, "total_tokens"))
row := fmt.Sprintf(" %-30s %10d %12s",
truncate(apiName, 30), apiReqs, formatLargeNumber(apiToks))
truncate(maskKey(apiName), 30), apiReqs, formatLargeNumber(apiToks))
sb.WriteString(lipgloss.NewStyle().Bold(true).Render(row))
sb.WriteString("\n")