Skip to content
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

Adding Arabic localization #291

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions gui-src/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ function detectLanguage() {
const lang = navigator.language || navigator.userLanguage;
const langCode = lang.split('-')[0];
switch (langCode) {
case 'ar':
return 'ar';
case 'es':
return 'es';
case 'ru':
Expand Down
35 changes: 35 additions & 0 deletions gui-src/locales/ar.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"select_location": "اختر الموقع",
"zoom_in_and_choose": "قم بالتكبير واختر منطقتك باستخدام أداة المستطيل",
"select_world": "اختر عالم",
"choose_world": "اختر عالم",
"no_world_selected": "لم يتم اختيار أي عالم",
"start_generation": "بدأ البناء",
"progress": "التقدم",
"custom_selection_confirmed": "تم تأكيد التحديد المخصص!",
"error_coordinates_out_of_range": "خطأ: الإحداثيات خارج النطاق أو مرتبة بشكل غير صحيح (يجب أن تكون خطوط العرض قبل خطوط الطول).",
"invalid_format": "صيغة غير صحيحة. يُرجى استخدام 'lat,lng,lat,lng' أو 'lat lng lat lng'.",
"select_a_location_first": "اختر موقعاً أولاً!",
"select_a_minecraft_world_first": "اختر عالم ماينكرافت أولاً!",
"generation_process_started": "تم بدء عملية البناء.",
"winter_mode": "وضع الشتاء:",
"world_scale": "مقياس العالم:",
"custom_bounding_box": "مربع التحديد المخصص:",
"floodfill_timeout": "مهلة ملء الفيضانات (ثواني):",
"ground_level": "مستوى الأرض:",
"choose_world_modal_title": "اختر العالم",
"select_existing_world": "اختر عالماً موجوداً",
"generate_new_world": "أنشئ عالماً جديداً",
"customization_settings": "إعدادات التخصيص",
"footer_text": "© {year} Arnis v{version} بواسطة louis-e",
"new_version_available": "هناك إصدار جديد متوفر! انقر هنا لتحميله.",
"minecraft_directory_not_found": "لم يتم العثور على مجلد ماينكرافت",
"world_in_use": "العالم المحدد قيد الاستخدام حالياً",
"failed_to_create_world": "حدثت مشكلة عند محاولة إنشاء عالم جديد",
"no_world_selected_error": "لم يتم اختيار أي عالم",
"select_minecraft_world_first": "اختر عالم ماينكرافت أولاً!",
"select_location_first": "اختر موقعاً أولاً!",
"area_too_large": "هذه المنطقة كبيرة جداً وقد تتجاوز حدود الحوسبة العادية.",
"area_extensive": "المنطقة واسعة جداً وقد تستغرق وقتاً وموارد كبيرة.",
"selection_confirmed": "تم تأكيد التحديد!"
}