Skip to content

feat(i18n): implement internationalization, Ukrainian localization support, and bump version to v1.2.0 - #40

Merged
podlLev merged 9 commits into
devfrom
feature/i18n-uk
Jul 29, 2026
Merged

podlLev merged 9 commits into
devfrom
feature/i18n-uk

Conversation

@podlLev

@podlLev podlLev commented Jul 29, 2026

Copy link
Copy Markdown
Owner

Overview

This PR introduces full internationalization (i18n) and localization (l10n) across the application, adding full support for Ukrainian alongside default message bundles. It dynamically resolves user request locales to fetch localized weather condition descriptions directly from OpenWeatherMap and translates frontend templates and weather condition labels.


Key Changes

  • Internationalization Infrastructure & Message Bundles:

    • Encoding & Config: Configured Spring MessageSource with UTF-8 encoding to correctly parse internationalization character sets.
    • Message Bundles: Added default and Ukrainian (messages_uk.properties) message bundles to support UI localization.
    • View Localization: Refactored HTML views/templates to utilize localized i18n message keys instead of hardcoded UI strings.
  • Weather API Localization Integration:

    • Locale Resolver: Implemented WeatherApiLocale to resolve active request locales and map them into API-compatible parameters.
    • Localized External Requests: Configured OpenWeatherMap client queries to request localized weather condition descriptions based on the resolved user locale.
    • Localized Weather Condition Labels: Added weather-condition.* translation keys for standardized weather condition mappings across the application.
  • Testing & Release Management:

    • Locale Verification Tests: Added WeatherApiLocaleTest and updated WeatherApiClientTest with pinned LocaleContextHolder states to verify locale-aware API call resolution.
    • Version Bump: Bumped application version to 1.2.0 in preparation for release.

@podlLev podlLev self-assigned this Jul 29, 2026
@podlLev podlLev added feature New features, fresh endpoints, or user-facing functionality test Adding unit tests, web slice tests, or integration suites labels Jul 29, 2026
@podlLev
podlLev merged commit 200bd87 into dev Jul 29, 2026
2 checks passed
@podlLev
podlLev deleted the feature/i18n-uk branch July 29, 2026 06:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New features, fresh endpoints, or user-facing functionality test Adding unit tests, web slice tests, or integration suites

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant