-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Add Complete Persian Translations and Support Automatic Text Direction with dir
Attribute
#9194
base: development
Are you sure you want to change the base?
Conversation
Reviewer's Guide by SourceryThis pull request adds complete Persian translations and implements automatic text direction detection using the Updated class diagram for L10nServiceclassDiagram
class L10nService {
+locales: Object
+momentLocales: Object
+pluralRules: Object
+rtlLocales: Set
+loadLocale(locale: string): Promise<void>
+setLocale(locale: string): void
+getLocale(): string
+t(key: string, options: Object): string
}
note for L10nService "Added 'fa_IR' to locales and momentLocales"
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @Goudarz - I've reviewed your changes - here's some feedback:
Overall Comments:
- Consider using a more specific locale than
fa-IR
if there are regional variations in Persian. - Be careful when applying
dir=auto
to text - it can be surprising when the direction changes.
Here's what I looked at during the review
- 🟡 General issues: 1 issue found
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
@@ -12,7 +12,7 @@ | |||
<h5 class="event time ends" style={{this.vietnameseFontFamily}}>{{t 'To'}} {{general-date this.model.endsAt 'date-time-tz-long' tz=this.model.timezone}}</h5> | |||
{{/if}} | |||
<LinkTo @route="public"> | |||
<h1 class="event name text-white">{{this.model.name}}</h1> | |||
<h1 class="event name text-white" dir="auto">{{this.model.name}}</h1> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion: Addition of dir="auto" for event names improves text direction handling.
This change supports proper rendering for RTL languages. Ensure that similar dynamic text elements are adjusted consistently.
Suggested implementation:
<h4 class="event location" dir="auto" style={{this.vietnameseFontFamily}}><i class="icon map marker alternate"></i>{{this.headerLocation}}</h4>
<h4 class="event location" dir="auto" style={{this.vietnameseFontFamily}}><i class="icon map marker alternate"></i>{{this.headerLocation}}</h4>
Short description of what this resolves:
Complete Persian translations have been added:
msgid
s were reviewed and translated into Persian.The
dir
attribute was added to the UI:dir
attribute dynamically determines text direction (LTR/RTL) based on content.Reasons for These Changes:
Areas to Verify:
dir
attribute functionality across all parts of the UI to confirm proper behavior.Checklist
development
branch.Summary by Sourcery
Adds Persian language support and implements automatic text direction based on content.
New Features:
dir
attribute, improving the user experience for both LTR and RTL languages.