Skip to content

Commit 2a05856

Browse files
Add files via upload
Signed-off-by: FireMoonStudio <firemoongamesstudio@gmail.com>
1 parent 5aec13c commit 2a05856

File tree

2 files changed

+50
-0
lines changed

2 files changed

+50
-0
lines changed

src/core/i18n/translate.ts

Lines changed: 4 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';
@@ -19,6 +20,7 @@ import { translation as langUk } from './translations/lang-uk';
1920
import { translation as langZhCn } from './translations/lang-zh-cn';
2021
import { translation as langZhTw } from './translations/lang-zh-tw';
2122

23+
2224
let currentTranslation: Translation;
2325
let fallbackTranslation: Translation;
2426

@@ -47,6 +49,8 @@ const loadTranslation = async (language: string) => {
4749
/** Get the translation object of the separated translation files */
4850
const getTranslationObject = async (language: string): Promise<Translation> => {
4951
switch (language) {
52+
case 'ar':
53+
return langAr;
5054
case 'cs':
5155
return langCs;
5256
case 'de':
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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+
46+
};

0 commit comments

Comments
 (0)