Skip to content

Feature/rtl arabic support #1585

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

mohssineAboutaj
Copy link

I added proper RTL support for Arabic and other RTL languages, plus fixed a bunch of issues in the Arabic translations.

- Add dedicated RTL stylesheet (_rtl.scss) with comprehensive RTL rules
- Extend Twig AppExtension with RTL helper functions (is_rtl, rtl_class, rtl_dir)
- Update base template to set proper dir attribute and RTL class
- Enhance language selector to use RTL helper functions
- Support for Arabic, Persian, Hebrew, Urdu, Pashto, and Sindhi
- Include RTL-specific adjustments for:
  * Navigation and dropdowns
  * Forms and input groups
  * Tables, alerts, and modals
  * Pagination and breadcrumbs
  * Bootstrap components
  * Responsive design
  * Print styles

This improves the user experience for RTL language users by providing
proper text direction, layout, and component positioning.
- Fix untranslated English text in http_error_500.description
- Correct spelling errors (خطأفى → خطأ في, تغير → تغيير)
- Fix double negatives in modal messages
- Standardize terminology (باسوورد → كلمة المرور, ايميل → البريد الإلكتروني)
- Improve grammar and natural Arabic phrasing
- Change 'منشور' to 'مقال' for better context
- Add proper Arabic diacritics where missing
- Enhance user experience with clearer error messages
- Fix validation messages for better clarity
- Improve consistency across all translation keys

This significantly improves the Arabic user experience by providing
accurate, natural, and professional translations.
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