Backend Internationalization
Backend Internationalization - Implementation Summary
Section titled “Backend Internationalization - Implementation Summary”✅ Implemented Features
Section titled “✅ Implemented Features”1. Base Configuration
Section titled “1. Base Configuration”- Supported languages: English (default) and Spanish
- Configuration in
application.yml
for Spring Boot - Language resolution based on the
Accept-Language
header
2. Message Files
Section titled “2. Message Files”messages.properties
- Messages in English (default)messages_es.properties
- Messages in Spanish- Over 40 localized messages organized by category:
- Common messages (success, error, warning)
- Authentication (login, logout, tokens)
- Users (creation, update, deletion)
- Bulletins (creation, publication, drafts)
- Workspaces (access, permissions)
- Emails and validations
- System health checks
3. Configuration Classes
Section titled “3. Configuration Classes”InternationalizationConfig
: Main i18n configurationMessageService
: Service to obtain localized messagesResponseMessages
: Constants with all message keysLocalizedResponse
: Wrapper for localized API responses
4. Error Handling Integration
Section titled “4. Error Handling Integration”GlobalExceptionHandler
updated to use localized messages- All HTTP errors now include:
- Messages in the client’s language
- Information about the locale used
- Timestamps and error categories