Skip to content

feat(i18n): add database localization support - #17

Closed
Lion504 wants to merge 1 commit into
mainfrom
feat/database-localization
Closed

feat(i18n): add database localization support#17
Lion504 wants to merge 1 commit into
mainfrom
feat/database-localization

Conversation

@Lion504

@Lion504 Lion504 commented Apr 12, 2026

Copy link
Copy Markdown
Owner

Implement comprehensive localization infrastructure for database entities, including support for multiple locales with fallback mechanisms and UTF-8 validation. Changes include:

  • Added LocalizableDAO interface for locale-aware data access
  • Updated DatabaseConnection with UTF-8 charset parameters for proper internationalization support
  • Created migration script to convert tables to utf8mb4, add locale tables, and migrate existing profile data to translations
  • Enhanced ProfileDAO to implement LocalizableDAO with translation methods using fallback resolution
  • Added LocaleFallbackResolver utility for locale chaining
  • Added Utf8Validator utility for UTF-8 input validation and sanitization

This enables the application to serve localized content across supported languages including RTL languages like Arabic and Persian.

Implement comprehensive localization infrastructure for database entities,
including support for multiple locales with fallback mechanisms and UTF-8
validation. Changes include:

- Added LocalizableDAO interface for locale-aware data access
- Updated DatabaseConnection with UTF-8 charset parameters for proper
  internationalization support
- Created migration script to convert tables to utf8mb4, add locale tables,
  and migrate existing profile data to translations
- Enhanced ProfileDAO to implement LocalizableDAO with translation methods
  using fallback resolution
- Added LocaleFallbackResolver utility for locale chaining
- Added Utf8Validator utility for UTF-8 input validation and sanitization

This enables the application to serve localized content across supported
languages including RTL languages like Arabic and Persian.
@Lion504 Lion504 closed this Apr 12, 2026
@Lion504
Lion504 deleted the feat/database-localization branch April 15, 2026 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant