Skip to content

Commit c767fe1

Browse files
committed
feat: add arabic translation
refs: #562
1 parent ddd9e27 commit c767fe1

File tree

9 files changed

+242
-7
lines changed

9 files changed

+242
-7
lines changed

.all-contributorsrc

+10
Original file line numberDiff line numberDiff line change
@@ -517,6 +517,16 @@
517517
"contributions": [
518518
"code"
519519
]
520+
},
521+
{
522+
"login": "shady-abdelhamid",
523+
"name": "Shady",
524+
"avatar_url": "https://avatars.githubusercontent.com/u/8029319?v=4",
525+
"profile": "https://github.com/shady-abdelhamid",
526+
"contributions": [
527+
"code",
528+
"translation"
529+
]
520530
}
521531
],
522532
"commitConvention": "none"

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ Get started by checking out list of open [issues](https://github.com/tomastrajan
212212
<td align="center"><a href="https://github.com/allabouttech0803"><img src="https://avatars.githubusercontent.com/u/34211469?v=4?s=100" width="100px;" alt=""/><br /><sub><b>universaltutor5</b></sub></a><br /><a href="https://github.com/tomastrajan/angular-ngrx-material-starter/commits?author=allabouttech0803" title="Code">💻</a></td>
213213
<td align="center"><a href="https://github.com/dvargas46"><img src="https://avatars.githubusercontent.com/u/10914883?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Dan Vargas</b></sub></a><br /><a href="https://github.com/tomastrajan/angular-ngrx-material-starter/commits?author=dvargas46" title="Code">💻</a></td>
214214
<td align="center"><a href="https://github.com/milantenk"><img src="https://avatars.githubusercontent.com/u/4102195?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Milán Tenk</b></sub></a><br /><a href="https://github.com/tomastrajan/angular-ngrx-material-starter/commits?author=milantenk" title="Code">💻</a></td>
215+
<td align="center"><a href="https://github.com/shady-abdelhamid"><img src="https://avatars.githubusercontent.com/u/8029319?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Shady</b></sub></a><br /><a href="https://github.com/tomastrajan/angular-ngrx-material-starter/commits?author=shady-abdelhamid" title="Code">💻</a> <a href="#translation-shady-abdelhamid" title="Translation">🌍</a></td>
215216
</tr>
216217
</table>
217218

projects/angular-ngrx-material-starter/src/app/app/app.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export class AppComponent implements OnInit {
3434
version = env.versions.app;
3535
year = new Date().getFullYear();
3636
logo = 'assets/logo.png';
37-
languages = ['en', 'de', 'sk', 'fr', 'es', 'pt-br', 'zh-cn', 'he'];
37+
languages = ['en', 'de', 'sk', 'fr', 'es', 'pt-br', 'zh-cn', 'he', 'ar'];
3838
navigation = [
3939
{ link: 'about', label: 'anms.menu.about' },
4040
{ link: 'feature-list', label: 'anms.menu.features' },

projects/angular-ngrx-material-starter/src/app/core/settings/settings.model.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { AppState } from '../core.module';
22

33
export const NIGHT_MODE_THEME = 'BLACK-THEME';
44

5-
export type Language = 'en' | 'sk' | 'de' | 'fr' | 'es' | 'pt-br' | 'he';
5+
export type Language = 'en' | 'sk' | 'de' | 'fr' | 'es' | 'pt-br' | 'he' | 'ar';
66

77
export interface SettingsState {
88
language: string;

projects/angular-ngrx-material-starter/src/app/features/about/about/about.component.html

+6
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,12 @@ <h2>{{ 'anms.about.contributors.title' | translate }}</h2>
403403
<img alt src="https://avatars.githubusercontent.com/u/4102195?v=4">
404404
<span>Milán Tenk</span>
405405
</a>
406+
407+
408+
<a class="contributor" href="https://github.com/shady-abdelhamid" rel="noopener noreferrer" target="_blank">
409+
<img alt src="https://avatars.githubusercontent.com/u/8029319?v=4">
410+
<span>Shady</span>
411+
</a>
406412
<!-- ALL-CONTRIBUTORS-LIST:END -->
407413

408414
</div>

projects/angular-ngrx-material-starter/src/app/features/settings/settings/settings-container.component.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ export class SettingsContainerComponent implements OnInit {
4242
{ value: 'es', label: 'Español' },
4343
{ value: 'pt-br', label: 'Português' },
4444
{ value: 'zh-cn', label: '简体中文' },
45-
{ value: 'he', label: 'עברית' }
45+
{ value: 'he', label: 'עברית' },
46+
{ value: 'ar', label: 'اللغة العربية' }
4647
];
4748

4849
constructor(private store: Store<State>) {}

projects/angular-ngrx-material-starter/src/app/shared/rtl-support/rtl-support.directive.ts

+8-4
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,21 @@ export class RtlSupportDirective implements OnInit, OnDestroy {
1010
private subscription: Subscription | undefined;
1111
constructor(private el: ElementRef, public translate: TranslateService) {
1212
el.nativeElement.style.textAlign =
13-
translate.currentLang === 'he' ? 'right' : 'left';
13+
translate.currentLang === 'he' || translate.currentLang === 'ar'
14+
? 'right'
15+
: 'left';
1416
el.nativeElement.style.direction =
15-
translate.currentLang === 'he' ? 'rtl' : 'ltr';
17+
translate.currentLang === 'he' || translate.currentLang === 'ar'
18+
? 'rtl'
19+
: 'ltr';
1620
}
1721
ngOnInit() {
1822
this.subscription = this.translate.onLangChange.subscribe(
1923
(event: LangChangeEvent) => {
2024
this.el.nativeElement.style.textAlign =
21-
event.lang === 'he' ? 'right' : 'left';
25+
event.lang === 'he' || event.lang === 'ar' ? 'right' : 'left';
2226
this.el.nativeElement.style.direction =
23-
event.lang === 'he' ? 'rtl' : 'ltr';
27+
event.lang === 'he' || event.lang === 'ar' ? 'rtl' : 'ltr';
2428
}
2529
);
2630
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
{
2+
"anms.about.change-theme": "غير المظهر",
3+
"anms.about.check-blogs": "أو تفحص المدونات",
4+
"anms.about.contributors.description1": "هل ترغب في المساهمة في ال open source باستخدام Angular؟",
5+
"anms.about.contributors.description2": "اترك بصمتك وانضم إلى فريق المساهمين المتزايد!",
6+
"anms.about.contributors.description3": "ابدأ بإلقاء نظرة على ",
7+
"anms.about.contributors.description4": " و ",
8+
"anms.about.contributors.guide": "دليل المساهم",
9+
"anms.about.contributors.issues": "القضايا المفتوحة",
10+
"anms.about.contributors.title": "المساهمون",
11+
"anms.about.get-notified.description": "روبوت على Twitter يساعدك على البقاء على اطلاع دائم بإصدارات المكتبات والأطر الأمامية الشهيرة!",
12+
"anms.about.get-notified.follow": "إتبع",
13+
"anms.about.get-notified.title": "تلقى إشعارات عن الإصدارات الحديثة",
14+
"anms.about.get-started": "إبدأ",
15+
"anms.features.angular": "إطار عمل حديث و قوي",
16+
"anms.features.angular-cli": "واجهة CLI لـ Angular",
17+
"anms.features.angular-material": "مكتبة مكونات Material design",
18+
"anms.features.bootstrap": "تخطيط سريع الاستجابة من مكتبة واجهة المستخدم الأكثر شهرة في العالم التي تم اختبارها كثيرا",
19+
"anms.features.cypress": "Cypress هي أداة اختبار للواجهة الأمامية من الجيل التالي تم تصميمها للويب الحديث.",
20+
"anms.features.documentation": "المستندات",
21+
"anms.features.fontawesome": "استخدام الرموز ال vector بسهولة والشعارات الاجتماعية",
22+
"anms.features.guide": "الدليل",
23+
"anms.features.lazyloading.description": "وقت بدء تشغيل أسرع مع الوحدات المحملة ببطء",
24+
"anms.features.lazyloading.title": "Lazy loadding",
25+
"anms.features.ngrx": "أحد الطرق لتدفق البيانات مدعومة من RxJS Observables",
26+
"anms.features.ngxtranslate": "مكتبة ترجمة لـ Angular",
27+
"anms.features.rxjs": "البرمجة التفاعلية مع مجموعات غير متزامنة باستخدام Observables",
28+
"anms.features.themes.description": "دعم السمات المرن للمكونات المقدمة والمصممة",
29+
"anms.features.themes.title": "المظهر",
30+
"anms.features.title": "الميزات",
31+
"anms.features.typescript": "تجربة مطور متفوقة ، وإكمال الكود ، وإعادة بناء ، وأخطاء أقل",
32+
"anms.features.eslint": "ESLint هو لتحديد الأنماط الإشكالية الموجودة في كود ال JavaScript و Typescript",
33+
"anms.footer.changelog": "إظهر ال changelog",
34+
"anms.header.github": "Project Github Repository",
35+
"anms.menu.about": "عن",
36+
"anms.menu.examples": "أمثلة",
37+
"anms.menu.features": "الميزات",
38+
"anms.menu.login": "تسجيل الدخول",
39+
"anms.menu.logout": "تسجيل خروج",
40+
"anms.menu.settings": "إعدادات",
41+
"anms.settings.animations.elements": "إنزلاق عناصر صفحة التنقل لأعلى",
42+
"anms.settings.animations.page": "التنقل في صفحة بأكملها",
43+
"anms.settings.animations.title": "الرسوم المتحركة",
44+
"anms.settings.general.language.de": "اللغة الألمانية",
45+
"anms.settings.general.language.en": "اللغة الإنجليزية",
46+
"anms.settings.general.language.es": "اللغة الأسبانية",
47+
"anms.settings.general.language.fr": "اللغة الفرنسية",
48+
"anms.settings.general.language.he": "اللغة العبرية",
49+
"anms.settings.general.language.pt-br": "اللغة البرتغالية",
50+
"anms.settings.general.language.sk": "اللغة السلوفاكية",
51+
"anms.settings.general.language.zh-cn": "اللغة الصينية",
52+
"anms.settings.general.placeholder": "اللغة",
53+
"anms.settings.general.title": "العام",
54+
"anms.settings.themes.blue": "أزرق",
55+
"anms.settings.themes.dark": "ظالم",
56+
"anms.settings.themes.light": "فاتح",
57+
"anms.settings.themes.nature": "طبيعي",
58+
"anms.settings.themes.night-mode": "الوضع الليلي التلقائي (من 21:00 إلى 7:00)",
59+
"anms.settings.themes.placeholder": "موضوع اللون",
60+
"anms.settings.themes.saneago": "",
61+
"anms.settings.themes.sticky-header": "رأس لاصق",
62+
"anms.settings.themes.title": "المظهر",
63+
"anms.settings.title": "الإعدادات",
64+
"anms.title.long": "Angular NgRx Material Starter",
65+
"anms.title.short": "Angular Starter"
66+
}

0 commit comments

Comments
 (0)