Skip to content

feat: add support for additional locales and translations#3403

Open
kirwako wants to merge 1 commit intotolgee:mainfrom
kirwako:kirwako/fix-ukrainian-language-selector
Open

feat: add support for additional locales and translations#3403
kirwako wants to merge 1 commit intotolgee:mainfrom
kirwako:kirwako/fix-ukrainian-language-selector

Conversation

@kirwako
Copy link

@kirwako kirwako commented Jan 22, 2026

Fix #3289

Summary

Adds missing interface language support for multiple languages (Ukrainian, Hungarian, Italian, Dutch, Norwegian, Polish, Romanian, Russian) to the language selector

  • Translation files existed but languages were not fully configured
  • Added language entries to Tolgee's staticData configuration in webapp/src/index.tsx for translation loading
  • Added language entries to library/src/constants/locales.ts with proper metadata (name, flag, date-fns locale, translation import) for UI selector
  • Languages now appear in both the top bar language menu and user settings language selector

Test Plan

  • Verify all languages appear in language selector
  • Select each language from language menu - interface should switch correctly
  • Verify date formatting works correctly with each locale

Bug Fixes

  • Fixed missing interface languages by adding entries to both Tolgee's staticData configuration and locales constants
  • Languages now properly load translations and appear in the language selector UI

Summary by CodeRabbit

  • New Features
    • Added support for 8 new languages: Ukrainian, Hungarian, Italian, Dutch, Norwegian, Polish, Romanian, and Russian. Users can now use the application interface and view localized content in their preferred language, with region-specific date and time formatting for enhanced usability.

✏️ Tip: You can customize this high-level summary in your review settings.

- Introduced new locales: Ukrainian, Hungarian, Italian, Dutch, Norwegian, Polish, Romanian, and Russian.
- Updated the localization constants and translation imports in the application.
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 22, 2026

📝 Walkthrough

Walkthrough

The changes add support for eight new locales (Ukrainian, Hungarian, Italian, Dutch, Norwegian, Polish, Romanian, Russian) by importing date-fns locale modules and extending the locales configuration in both the library and web application.

Changes

Cohort / File(s) Summary
Locale Constants Configuration
library/src/constants/locales.ts
Imports eight date-fns locale modules (uk, hu, it, nl, nb, pl, ro, ru) and adds corresponding entries to the exported locales object with name, flag, dateFnsLocale, and translations import paths
Tolgee i18n Data
webapp/src/index.tsx
Extends Tolgee staticData with dynamic import mappings for the eight new locale JSON translation files (uk-UA, hu, it-IT, nl, no, pl, ro, ru)

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Suggested reviewers

  • JanCizmar
  • Anty0

Poem

🐰 Eight new tongues hop into our map,
From Eastern lands and Western gap,
Ukrainian whispers, Hungarian calls,
Italian, Dutch, and Nordic halls,
Polish, Romanian, Russian too—
More locales for the world to chew! 🌍✨

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: adding support for eight new locales (Ukrainian, Hungarian, Italian, Dutch, Norwegian, Polish, Romanian, and Russian) with their translations, which is the primary objective of this PR.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@JanCizmar
Copy link
Contributor

Hey! It looks cool, but so far, we are not happy with all of the languages. Someone needs to check it int our Tolgee project first. @marketachalupnikova what languages are we ready to add now?

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.

Ukrainian language missing in Docker version while present in repository

2 participants