feat(i18n): add backend multi-language support with user language preference
- Add go-i18n library for internationalization - Create i18n package with translation keys and YAML locale files (zh/en) - Implement i18n middleware for language detection from user settings and Accept-Language header - Add Language field to UserSetting DTO - Update API response helpers with i18n support (ApiErrorI18n, ApiSuccessI18n) - Migrate hardcoded messages in token, redemption, and user controllers - Add frontend language preference settings component - Sync language preference across header selector and user settings - Auto-restore user language preference on login
Showing
This diff is collapsed.
Click to expand it.
i18n/i18n.go
0 → 100644
i18n/keys.go
0 → 100644
This diff is collapsed.
Click to expand it.
i18n/locales/en.yaml
0 → 100644
This diff is collapsed.
Click to expand it.
i18n/locales/zh.yaml
0 → 100644
This diff is collapsed.
Click to expand it.
middleware/i18n.go
0 → 100644
Please
register
or
sign in
to comment