Skip to content

Add Russian and Arabic locale support for internationalization#14

Merged
markets merged 2 commits intomasterfrom
copilot/fix-6ee834b8-4b03-4bef-859a-0e8e46f0f158
Aug 26, 2025
Merged

Add Russian and Arabic locale support for internationalization#14
markets merged 2 commits intomasterfrom
copilot/fix-6ee834b8-4b03-4bef-859a-0e8e46f0f158

Conversation

Copy link
Contributor

Copilot AI commented Aug 25, 2025

This PR adds support for two important languages that were missing from the mini_i18n library: Russian (ru) and Arabic (ar).

What's Added

🇷🇺 Russian (ru) Locale

  • Complete Cyrillic script support with proper Russian translations
  • Date formatting following Russian conventions: понедельник, 25 декабрь 2023 г. (full format)
  • Short date format: 25.12.23 (DD.MM.YY)
  • Number formatting with space as thousands separator and comma as decimal: 1 234,56
  • Full Russian day and month names with proper abbreviations

🇸🇦 Arabic (ar) Locale

  • Complete Arabic script support (RTL reading compatible)
  • Date formatting in Arabic: الاثنين 25 ديسمبر 2023 (full format)
  • Short date format: 25/12/23 (DD/MM/YY)
  • Standard number formatting: 1,234.56
  • Full Arabic day and month names with proper abbreviations

Example Usage

require 'mini_i18n'

date = Date.new(2024, 3, 15)
number = 1234.56

# Russian localization
MiniI18n.l(date, locale: :ru)     # => "пятница, 15 март 2024 г."
MiniI18n.l(number, locale: :ru)   # => "1 234,56"

# Arabic localization  
MiniI18n.l(date, locale: :ar)     # => "الجمعة 15 مارس 2024"
MiniI18n.l(number, locale: :ar)   # => "1,234.56"

Changes Made

  • New files: Added lib/mini_i18n/locales/ru.yml and lib/mini_i18n/locales/ar.yml
  • Documentation: Updated README.md to list the new supported languages
  • Tests: Enhanced integration tests to cover the new locales
  • Total languages: Expanded from 9 to 11 supported languages

The library now covers major world language families including Western European, East Asian, Slavic (Russian), and Semitic (Arabic) languages, providing comprehensive internationalization support for global applications.

All existing functionality remains unchanged and fully backward compatible.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: markets <576701+markets@users.noreply.github.com>
Copilot AI changed the title [WIP] To provide localization files for important languages that are not yet included, only 2 extra languages Add Russian and Arabic locale support for internationalization Aug 25, 2025
Copilot AI requested a review from markets August 25, 2025 22:42
@markets markets marked this pull request as ready for review August 26, 2025 00:08
@markets markets merged commit 0265267 into master Aug 26, 2025
16 checks passed
@markets markets deleted the copilot/fix-6ee834b8-4b03-4bef-859a-0e8e46f0f158 branch August 26, 2025 00:09
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.

2 participants