Skip to content

Add Arabic (ar) locale support#2798

Merged
samuelwei merged 3 commits intoTHM-Health:developfrom
hassanalitamam:feature/add-arabic-locale
Feb 9, 2026
Merged

Add Arabic (ar) locale support#2798
samuelwei merged 3 commits intoTHM-Health:developfrom
hassanalitamam:feature/add-arabic-locale

Conversation

@hassanalitamam
Copy link
Copy Markdown
Contributor

@hassanalitamam hassanalitamam commented Feb 6, 2026

Summary

Add complete Arabic language support for PILOS with RTL configuration.

  • 12 new translation files in lang/ar/ covering all application areas: UI, authentication, administration, room management, meetings, email notifications, validation messages, and system monitoring
  • RTL support configured via metadata.json with appropriate date/time formatting
  • Locale registry updated in existing language files (en, de, fr, fa) to include Arabic
  • All translations use standard Arabic conventions for consistency across Arabic-speaking regions

Files Added

File Description
lang/ar/metadata.json Language metadata with RTL flag and date/time formats
lang/ar/app.php General UI strings, errors, time formats
lang/ar/auth.php Authentication and session management
lang/ar/admin.php Administration panel
lang/ar/rooms.php Room management and settings
lang/ar/meetings.php Meeting and attendance tracking
lang/ar/home.php Landing page content
lang/ar/mail.php Email notification templates
lang/ar/validation.php Laravel validation messages and custom attributes
lang/ar/passwords.php Password reset messages
lang/ar/pagination.php Pagination labels
lang/ar/system.php System monitoring labels

Files Modified

  • lang/en/app.php — Added 'ar' => 'Arabic'
  • lang/de/app.php — Added 'ar' => 'Arabisch'
  • lang/fr/app.php — Added 'ar' => 'Arabe'
  • lang/fa/app.php — Added 'ar' => 'عربی'

Test Plan

  • Switch to Arabic locale and verify RTL layout renders correctly
  • Verify all translation strings display properly across all pages
  • Confirm date/time formatting follows Arabic conventions
  • Test locale switching between Arabic and other languages
  • Verify email notifications render correctly in Arabic

Summary by CodeRabbit

  • New Features

    • Full Arabic (العربية) localization added across the app: admin UI, auth, home, rooms, meetings, emails, validation, system texts, and pagination.
    • Right-to-left (RTL) metadata and date/time formats included for Arabic.
    • Arabic locale added to existing language selectors.
  • Changelog

    • Added Arabic locale entry to release notes.

Add complete Arabic language support including all translation files
for the user interface, authentication, administration, room management,
meetings, email notifications, validation messages, and system monitoring.

Arabic is configured as an RTL language with appropriate date/time
formatting. All translations follow standard Arabic conventions to
ensure consistency across Arabic-speaking regions.

Changes:
- Create 12 translation files in lang/ar/
- Add Arabic locale entry to existing language files (en, de, fr, fa)
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Feb 6, 2026

Walkthrough

Adds full Arabic (ar) localization: 11 PHP translation files and a metadata.json with RTL support; updates four existing locale lists to include Arabic and updates the changelog. Files provide translations for admin, app, auth, home, mail, meetings, pagination, passwords, rooms, system, and validation.

Changes

Cohort / File(s) Summary
Arabic translation files
lang/ar/admin.php, lang/ar/app.php, lang/ar/auth.php, lang/ar/home.php, lang/ar/mail.php, lang/ar/meetings.php, lang/ar/pagination.php, lang/ar/passwords.php, lang/ar/rooms.php, lang/ar/system.php, lang/ar/validation.php
Added new Arabic translation arrays covering admin UI, general app strings, authentication, homepage, email templates, meetings/attendance, pagination, password messages, rooms feature, system monitoring, and comprehensive validation messages (including domain-specific overrides).
Arabic locale metadata
lang/ar/metadata.json
New locale metadata with name "العربية", datetime formats, and "rtl": true.
Existing locale registrations
lang/de/app.php, lang/en/app.php, lang/fa/app.php, lang/fr/app.php
Inserted 'ar' entries into existing locales arrays to register Arabic in locale selectors.
Changelog
CHANGELOG.md
Added Unreleased entry noting addition of Arabic locale and PR reference.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

Suggested reviewers

  • danielmachill
🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and specifically summarizes the main change: adding Arabic language support to the application.
Description check ✅ Passed The description provides a comprehensive summary with clear sections (Summary, Files Added, Files Modified, Test Plan), though some required template sections are missing.
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 unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

No actionable comments were generated in the recent review. 🎉


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.

@codecov
Copy link
Copy Markdown

codecov Bot commented Feb 9, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.77%. Comparing base (5f09fd3) to head (6f4b496).
⚠️ Report is 1 commits behind head on develop.

Additional details and impacted files
@@              Coverage Diff              @@
##             develop    #2798      +/-   ##
=============================================
+ Coverage      96.75%   96.77%   +0.01%     
  Complexity      1825     1825              
=============================================
  Files            440      440              
  Lines          12479    12479              
  Branches        2073     2073              
=============================================
+ Hits           12074    12076       +2     
+ Misses           405      403       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@samuelwei
Copy link
Copy Markdown
Collaborator

We are thinking about adding flags as an option to the locale dropdown.

@hassanalitamam Would this flag be a good fit?

image https://commons.wikimedia.org/wiki/File:Flag_of_the_Arabic_language.svg

@samuelwei samuelwei merged commit c92caab into THM-Health:develop Feb 9, 2026
17 checks passed
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