Skip to content

The agent that grows with you

5.9 KB
Raw Blame
import { arPluginPreviewAccess } from './ar_plugin_preview_access'
import type { TranslationOverrides } from './define-locale'

export const arCapabilities = {
  skillDeepLink: {
    installTitle: (name: string) => `تثبيت «${name}»؟`,
    installDescription: 'ستتوفر هذه المهارة في الجلسات الجديدة. ثبّت من المصادر التي تثق بها فقط.',
    installTo: 'التثبيت في',
    thisComputer: 'هذا الكمبيوتر',
    installing: 'جارٍ التثبيت…',
    installComplete: (name: string) => `تم تثبيت «${name}»`,
    destinationChanged: 'تغيرت وجهة التثبيت. أغلق هذا الحوار وافتح رابط التثبيت مجددًا.',
    installed: 'المثبتة',
    source: 'المصدر'
  },
  skills: {
    plugins: {
      ...arPluginPreviewAccess,
      pageBlurb: 'يمكن للإضافة توسيع هذا التطبيق أو الوكيل أو كليهما — ولكل جزء مفتاح تشغيل مستقل.',
      folderAccess: {
        title: 'الوصول إلى المجلدات',
        hint: (name: string) => `يمكن لـ ${name} قراءة الملفات وتعديلها في هذه المجلدات. يسري الإلغاء فورًا.`,
        revoke: 'إلغاء',
        revokeLabel: (path: string) => `إلغاء الوصول إلى ${path}`,
        revoked: (name: string, path: string) => `لم يعد بإمكان ${name} استخدام ${path}.`,
        revokeFailed: (name: string) => `تعذر إلغاء وصول ${name} إلى المجلدات`,
        pickerTitle: (name: string) => `اختر مجلدًا لـ ${name}`,
        pickerButton: 'السماح بالوصول',
        refusedProtected: (name: string) =>
          `لا يمكن لـ ${name} استخدام هذا المجلد: فهو يحتوي على إعدادات Hermes أو مفاتيحه أو بيانات الإضافات. اختر مجلدًا لا يحتويها.`,
        loadFailed: (name: string) => `تعذّر تحميل المجلدات المشتركة مع ${name}.`
      }
    },
    tabSkills: 'المهارات',
    tabToolsets: 'مجموعات الأدوات',
    all: 'الكل',
    searchSkills: 'البحث في المهارات',
    searchToolsets: 'البحث في مجموعات الأدوات',
    refresh: 'تحديث',
    lock: 'قفل',
    locked: 'مقفلة',
    lockHint: 'لا يمكن للوكيل تغيير هذه المهارة ما دامت مقفلة. لا يزال بإمكانك تعديلها بنفسك.',
    unlockedHint: 'اقفلها لمنع الوكيل من تغيير هذه المهارة. لا يزال بإمكانك تعديلها بنفسك.',
    refreshing: 'جار التحديث...',
    loading: 'جار التحميل...',
    noSkillsTitle: 'لا توجد مهارات',
    noSkillsDesc: 'ستظهر المهارات المثبتة هنا.',
    noToolsetsTitle: 'لا توجد مجموعات أدوات',
    noToolsetsDesc: 'ستظهر مجموعات الأدوات المتاحة هنا.',
    noDescription: 'لا يوجد وصف',
    configured: 'مضبوط',
    needsKeys: 'يحتاج مفاتيح',
    toolsetsEnabled: (enabled, total) => `${enabled} من ${total} مفعلة`,
    configureToolset: label => `ضبط ${label}`,
    toggleToolset: (label, enabled) => `${enabled ? 'تشغيل' : 'إيقاف'} ${label}`,
    skillsLoadFailed: 'فشل تحميل المهارات',
    toolsetsRefreshFailed: 'فشل تحديث مجموعات الأدوات',
    skillEnabled: 'تم تفعيل المهارة',
    skillDisabled: 'تم تعطيل المهارة',
    toolsetEnabled: 'تم تفعيل مجموعة الأدوات',
    toolsetDisabled: 'تم تعطيل مجموعة الأدوات',
    appliesToNewSessions: name => `ينطبق على الجلسات الجديدة في ${name}`,
    failedToUpdate: name => `فشل تحديث ${name}`
  },
  agents: {
    extendedTranscript: 'سجل موسّع',
    transcriptTruncated: 'عرض أحدث 16 KiB',
    transcriptUnavailable: 'السجل المباشر غير متاح',

    close: 'إغلاق الوكلاء',
    title: 'شجرة التوليد',
    subtitle: 'نشاط الوكلاء الفرعيين المباشر للدور الحالي.',
    emptyTitle: 'لا يوجد وكلاء فرعيون مباشرون',
    emptyDesc: 'عندما يفوّض دور ما عملا، يبث الوكلاء الأبناء تقدّمهم هنا.',
    running: 'قيد التشغيل',
    failed: 'فشل',
    done: 'تم',
    streaming: 'جار البث',
    files: 'الملفات',
    moreFiles: count => `+${count} ملفات إضافية`,
    moreAgents: count => `${count} وكلاء إضافيون`,
    queued: 'في قائمة الانتظار',
    waitingActivity: 'بانتظار النشاط',
    steer: 'توجيه',
    steerPlaceholder: 'تعليمات لهذا الوكيل الفرعي',
    steerQueued: 'في انتظار نقطة التحقق التالية',
    stopRequested: 'تم طلب الإيقاف',
    requestRejected: 'لم يقبل الوكيل الفرعي الطلب',
    delegation: index => `التفويض ${index}`,
    workers: count => `${count} عامل`,
    workersActive: count => `${count} نشط`,
    agentsCount: count => `${count} ${count === 1 ? 'وكيل' : 'وكلاء'}`,
    activeCount: count => `${count} نشط`,
    failedCount: count => `${count} فشل`,
    toolsCount: count => `${count} أداة`,
    filesCount: count => `${count} ملف`,
    updatedAgo: age => `تم التحديث ${age}`,
    ageNow: 'الآن',
    ageSeconds: seconds => `قبل ${seconds} ث`,
    ageMinutes: minutes => `قبل ${minutes} د`,
    ageHours: hours => `قبل ${hours} س`,
    durationSeconds: seconds => `${seconds} ث`,
    durationMinutes: (minutes, seconds) => `${minutes} د ${seconds} ث`,
    tokens: value => `${value} رمز`
  }
} satisfies Pick<TranslationOverrides, 'skillDeepLink' | 'skills' | 'agents'>