refactor: update UI text and error messages to English for better accessibility

This commit is contained in:
Laisky.Cai
2025-01-19 12:59:58 +00:00
parent 76ba80d406
commit 13b1b165bd
62 changed files with 805 additions and 805 deletions

View File

@@ -295,7 +295,7 @@ func updateChannelBalance(channel *model.Channel) (float64, error) {
baseURL = channel.GetBaseURL()
}
case channeltype.Azure:
return 0, errors.New("尚未实现")
return 0, errors.New("Not yet implemented")
case channeltype.Custom:
baseURL = channel.GetBaseURL()
case channeltype.CloseAI:
@@ -313,7 +313,7 @@ func updateChannelBalance(channel *model.Channel) (float64, error) {
case channeltype.DeepSeek:
return updateChannelDeepSeekBalance(channel)
default:
return 0, errors.New("尚未实现")
return 0, errors.New("Not yet implemented")
}
url := fmt.Sprintf("%s/v1/dashboard/billing/subscription", baseURL)
@@ -399,7 +399,7 @@ func updateAllChannelsBalance() error {
} else {
// err is nil & balance <= 0 means quota is used up
if balance <= 0 {
monitor.DisableChannel(channel.Id, channel.Name, "余额不足")
monitor.DisableChannel(channel.Id, channel.Name, "Insufficient balance")
}
}
time.Sleep(config.RequestInterval)