Skip to content

Backend Internationalization

Backend Internationalization - Implementation Summary

Section titled “Backend Internationalization - Implementation Summary”
  • Supported languages: English (default) and Spanish
  • Configuration in application.yml for Spring Boot
  • Language resolution based on the Accept-Language header
  • 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
  • InternationalizationConfig: Main i18n configuration
  • MessageService: Service to obtain localized messages
  • ResponseMessages: Constants with all message keys
  • LocalizedResponse: Wrapper for localized API responses
  • 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