Refactor localization strings to English across various services and UI components

- Updated titles and subtitles in channel_service.go for web channel and WeChat MP channel configurations.
- Changed handoff messages in conversation_human_dispatch_service.go to English.
- Modified notification messages in event handlers for ticket and conversation assignments to English.
- Adjusted ticket creation messages in ticket_service.go to reflect English localization.
- Updated default locale settings in i18n configuration files to English (en-US).
- Changed HTML language attribute in layout.tsx to English.
- Refactored widget locale detection logic in agent-desk-sdk.ts to prioritize English.
This commit is contained in:
mlogclub
2026-05-31 20:06:44 +08:00
parent bcf2ee38c0
commit b128447a7e
36 changed files with 315 additions and 164 deletions
+2 -2
View File
@@ -16,7 +16,7 @@ var (
)
func BuildNotification(item *models.Notification) *response.NotificationResponse {
return BuildNotificationWithLocale(item, i18nx.LocaleZhCN)
return BuildNotificationWithLocale(item, i18nx.DefaultLocale)
}
func BuildNotificationWithLocale(item *models.Notification, locale string) *response.NotificationResponse {
@@ -39,7 +39,7 @@ func BuildNotificationWithLocale(item *models.Notification, locale string) *resp
}
func BuildNotificationList(list []models.Notification) []response.NotificationResponse {
return BuildNotificationListWithLocale(list, i18nx.LocaleZhCN)
return BuildNotificationListWithLocale(list, i18nx.DefaultLocale)
}
func BuildNotificationListWithLocale(list []models.Notification, locale string) []response.NotificationResponse {