Skip to content

Commit 2ed916f

Browse files
feat(i18n): add Arabic translation (#3401)
Signed-off-by: FireMoonStudio <firemoongamesstudio@gmail.com> Co-authored-by: Philipp Kief <philipp.kief@gmx.de>
1 parent c2f6cd5 commit 2ed916f

File tree

3 files changed

+101
-0
lines changed

3 files changed

+101
-0
lines changed

package.nls.ar.json

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
{
2+
"command.activateIcons": "Material Icons: تفعيل سمة الأيقونات",
3+
"command.toggleIconPacks": "Material Icons: إعداد حزم الأيقونات",
4+
"command.changeFolderTheme": "Material Icons: تغيير سمة المجلد",
5+
"command.changeFolderColor": "Material Icons: تغيير لون المجلد",
6+
"command.changeRootFolderColor": "Material Icons: تغيير لون المجلد الرئيسي",
7+
"command.changeFileColor": "Material Icons: تغيير لون الملف",
8+
"command.restoreDefaultConfig": "Material Icons: استعادة الإعدادات الافتراضية",
9+
"command.toggleExplorerArrows": "Material Icons: إظهار أو إخفاء أسهم المستكشف",
10+
"command.changeOpacity": "Material Icons: تغيير شفافية الأيقونات",
11+
"command.toggleGrayscale": "Material Icons: تشغيل أو إيقاف التدرج الرمادي",
12+
"command.changeSaturation": "Material Icons: تغيير تشبع الألوان",
13+
"configuration.title": "أيقونات Material",
14+
"configuration.files.associations": "تعيين ارتباطات مخصصة لأيقونات الملفات.",
15+
"configuration.folders.associations": "تعيين ارتباطات مخصصة لأيقونات المجلدات.",
16+
"configuration.rootFolders.associations": "تعيين ارتباطات مخصصة لأيقونات المجلدات الرئيسية.",
17+
"configuration.languages.associations": "تعيين ارتباطات مخصصة لأيقونات لغات البرمجة.",
18+
"configuration.customClones": "استنساخ أيقونة موجودة وإنشاء أيقونة جديدة بألوان وارتباطات مخصصة",
19+
"configuration.customClones.base": "الأيقونة المستخدمة كأساس لإنشاء الأيقونة المخصصة",
20+
"configuration.customClones.name": "اسم الأيقونة المخصصة",
21+
"configuration.customClones.color": "اللون المستخدم كأساس لإعادة تلوين الأيقونة",
22+
"configuration.customClones.lightColor": "اللون المستخدم لإعادة التلوين عند استخدام السمة الفاتحة",
23+
"configuration.customClones.fileNames": "أسماء الملفات المرتبطة بالأيقونة المخصصة",
24+
"configuration.customClones.fileExtensions": "امتدادات الملفات المرتبطة بالأيقونة المخصصة",
25+
"configuration.customClones.folderNames": "أسماء المجلدات المرتبطة بالأيقونة المخصصة",
26+
"configuration.customClones.rootFolderNames": "أسماء المجلدات الرئيسية المرتبطة بالأيقونة المخصصة",
27+
"configuration.customClones.ids": "معرفات اللغات المرتبطة بالأيقونة المخصصة",
28+
"configuration.customClones.activeForPacks": "يتم إنشاء هذه النسخة فقط عندما تكون حزمة الأيقونات النشطة من بين هذه الحزم.",
29+
"configuration.activeIconPack": "اختر حزمة الأيقونات التي تفعّل أيقونات محددة.",
30+
"configuration.activeIconPack.angular": "أيقونات خاصة بـ Angular.",
31+
"configuration.activeIconPack.angular_ngrx": "أيقونات خاصة بـ Angular و ngrx.",
32+
"configuration.activeIconPack.react": "أيقونات خاصة بـ React.",
33+
"configuration.activeIconPack.react_redux": "أيقونات خاصة بـ React و Redux.",
34+
"configuration.activeIconPack.roblox": "أيقونات خاصة بـ Roblox.",
35+
"configuration.activeIconPack.qwik": "أيقونات خاصة بـ Qwik.",
36+
"configuration.activeIconPack.vue": "أيقونات خاصة بـ Vue.",
37+
"configuration.activeIconPack.vue_vuex": "أيقونات خاصة بـ Vue و Vuex.",
38+
"configuration.activeIconPack.nest": "أيقونات خاصة بـ NestJS.",
39+
"configuration.activeIconPack.bashly": "أيقونات خاصة بـ Bashly.",
40+
"configuration.activeIconPack.none": "لا توجد حزمة أيقونات مفعّلة.",
41+
"configuration.folders.theme": "تحديد نوع أيقونات المجلد.",
42+
"configuration.folders.theme.specific": "اختيار أيقونات مجلدات محددة.",
43+
"configuration.folders.theme.classic": "اختيار أيقونات مجلدات كلاسيكية.",
44+
"configuration.folders.theme.none": "بدون أيقونات للمجلدات.",
45+
"configuration.folders.color": "تغيير لون أيقونات المجلدات.",
46+
"configuration.rootFolders.color": "تغيير لون أيقونات المجلدات الرئيسية.",
47+
"configuration.files.color": "تغيير لون أيقونات الملفات.",
48+
"configuration.hidesExplorerArrows": "إخفاء أسهم المستكشف قبل المجلد.",
49+
"configuration.opacity": "تغيير شفافية الأيقونات.",
50+
"configuration.saturation": "تغيير تشبع الألوان.",
51+
"configuration.enableLogging": "تفعيل تسجيل السجلات في قناة الإخراج.",
52+
"configuration.logLevel": "تحديد مستوى السجل لرسائل الإخراج."
53+
}

src/core/i18n/translate.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { get } from '../helpers/object';
22
import { logger } from '../logging/logger';
33
import type { Translation } from '../models/i18n/translation';
4+
import { translation as langAr } from './translations/lang-ar';
45
import { translation as langCs } from './translations/lang-cs';
56
import { translation as langDe } from './translations/lang-de';
67
import { translation as langEn } from './translations/lang-en';
@@ -47,6 +48,8 @@ const loadTranslation = async (language: string) => {
4748
/** Get the translation object of the separated translation files */
4849
const getTranslationObject = async (language: string): Promise<Translation> => {
4950
switch (language) {
51+
case 'ar':
52+
return langAr;
5053
case 'cs':
5154
return langCs;
5255
case 'de':
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
import type { Translation } from '../../models/i18n/translation';
2+
3+
export const translation: Translation = {
4+
activate: 'تفعيل',
5+
activated: 'تم تفعيل Material Icon Theme.',
6+
iconPacks: {
7+
selectPack: 'اختر حزمة الأيقونات',
8+
description: "اختر حزمة الأيقونات '%0'",
9+
disabled: 'تعطيل حزم الأيقونات',
10+
},
11+
folders: {
12+
toggleIcons: 'اختر سمة المجلد',
13+
disabled: 'بدون أيقونات مجلدات',
14+
theme: {
15+
description: "اختر سمة المجلد '%0'",
16+
},
17+
},
18+
colorSelect: {
19+
color: 'اختر لونًا',
20+
hexCode: 'أدخل كود لون HEX',
21+
wrongHexCode: 'كود HEX غير صالح!',
22+
},
23+
opacity: {
24+
inputPlaceholder: 'قيمة الشفافية (بين 0 و 1)',
25+
wrongValue: 'يرجى إدخال رقم عشري بين 0 و 1.',
26+
},
27+
toggleSwitch: {
28+
on: 'تشغيل',
29+
off: 'إيقاف',
30+
},
31+
explorerArrows: {
32+
toggle: 'تبديل أسهم المجلدات في المستكشف',
33+
enable: 'إظهار أسهم المجلدات في المستكشف',
34+
disable: 'إخفاء أسهم المجلدات في المستكشف',
35+
},
36+
grayscale: {
37+
toggle: 'تبديل الأيقونات الرمادية',
38+
enable: 'تفعيل الأيقونات الرمادية',
39+
disable: 'تعطيل الأيقونات الرمادية',
40+
},
41+
saturation: {
42+
inputPlaceholder: 'قيمة التشبع (بين 0 و 1)',
43+
wrongValue: 'يرجى إدخال رقم عشري بين 0 و 1.',
44+
},
45+
};

0 commit comments

Comments
 (0)