docs(ar): second-pass localization cleanup
This commit is contained in:
@@ -45,7 +45,7 @@ description: هيّئ الوكلاء المتخصصين واستخدمهم.
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
### استخدام build
|
### استخدام Build
|
||||||
|
|
||||||
_الوضع_: `primary`
|
_الوضع_: `primary`
|
||||||
|
|
||||||
@@ -53,7 +53,7 @@ Build هو الوكيل الأساسي **الافتراضي** مع تفعيل ج
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
### استخدام plan
|
### استخدام Plan
|
||||||
|
|
||||||
_الوضع_: `primary`
|
_الوضع_: `primary`
|
||||||
|
|
||||||
@@ -67,7 +67,7 @@ _الوضع_: `primary`
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
### استخدام general
|
### استخدام General
|
||||||
|
|
||||||
_الوضع_: `subagent`
|
_الوضع_: `subagent`
|
||||||
|
|
||||||
@@ -75,7 +75,7 @@ _الوضع_: `subagent`
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
### استخدام explore
|
### استخدام Explore
|
||||||
|
|
||||||
_الوضع_: `subagent`
|
_الوضع_: `subagent`
|
||||||
|
|
||||||
@@ -83,7 +83,7 @@ _الوضع_: `subagent`
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
### استخدام compaction
|
### استخدام Compaction
|
||||||
|
|
||||||
_الوضع_: `primary`
|
_الوضع_: `primary`
|
||||||
|
|
||||||
@@ -91,7 +91,7 @@ _الوضع_: `primary`
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
### استخدام title
|
### استخدام Title
|
||||||
|
|
||||||
_الوضع_: `primary`
|
_الوضع_: `primary`
|
||||||
|
|
||||||
@@ -99,7 +99,7 @@ _الوضع_: `primary`
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
### استخدام summary
|
### استخدام Summary
|
||||||
|
|
||||||
_الوضع_: `primary`
|
_الوضع_: `primary`
|
||||||
|
|
||||||
|
|||||||
@@ -69,10 +69,10 @@ opencode attach [url]
|
|||||||
يتيح ذلك استخدام واجهة TUI مع واجهة خلفية لـ OpenCode تعمل عن بعد. على سبيل المثال:
|
يتيح ذلك استخدام واجهة TUI مع واجهة خلفية لـ OpenCode تعمل عن بعد. على سبيل المثال:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Start the backend server for web/mobile access
|
# ابدأ خادم الواجهة الخلفية للوصول عبر الويب/الجوال
|
||||||
opencode web --port 4096 --hostname 0.0.0.0
|
opencode web --port 4096 --hostname 0.0.0.0
|
||||||
|
|
||||||
# In another terminal, attach the TUI to the running backend
|
# في محطة طرفية (terminal) أخرى، اربط TUI بالواجهة الخلفية قيد التشغيل
|
||||||
opencode attach http://10.20.30.40:4096
|
opencode attach http://10.20.30.40:4096
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -326,10 +326,10 @@ opencode run Explain the use of context in Go
|
|||||||
يمكنك أيضا الإرفاق بمثيل `opencode serve` قيد التشغيل لتجنّب زمن الإقلاع البارد لخوادم MCP في كل تشغيل:
|
يمكنك أيضا الإرفاق بمثيل `opencode serve` قيد التشغيل لتجنّب زمن الإقلاع البارد لخوادم MCP في كل تشغيل:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Start a headless server in one terminal
|
# ابدأ خادمًا بلا واجهة في محطة طرفية واحدة
|
||||||
opencode serve
|
opencode serve
|
||||||
|
|
||||||
# In another terminal, run commands that attach to it
|
# في محطة طرفية أخرى، شغّل الأوامر التي ترتبط به
|
||||||
opencode run --attach http://localhost:4096 "Explain async/await in JavaScript"
|
opencode run --attach http://localhost:4096 "Explain async/await in JavaScript"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -54,11 +54,11 @@ Focus on the failing tests and suggest fixes.
|
|||||||
{
|
{
|
||||||
"$schema": "https://opencode.ai/config.json",
|
"$schema": "https://opencode.ai/config.json",
|
||||||
"command": {
|
"command": {
|
||||||
// This becomes the name of the command
|
// يصبح هذا اسم الأمر
|
||||||
"test": {
|
"test": {
|
||||||
// This is the prompt that will be sent to the LLM
|
// هذه هي المطالبة التي ستُرسل إلى LLM
|
||||||
"template": "Run the full test suite with coverage report and show any failures.\nFocus on the failing tests and suggest fixes.",
|
"template": "Run the full test suite with coverage report and show any failures.\nFocus on the failing tests and suggest fixes.",
|
||||||
// This is shown as the description in the TUI
|
// يظهر هذا كوصف في TUI
|
||||||
"description": "Run tests with coverage",
|
"description": "Run tests with coverage",
|
||||||
"agent": "build",
|
"agent": "build",
|
||||||
"model": "anthropic/claude-3-5-sonnet-20241022"
|
"model": "anthropic/claude-3-5-sonnet-20241022"
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ description: استخدام ملف إعدادات OpenCode بصيغة JSON.
|
|||||||
```jsonc title="opencode.jsonc"
|
```jsonc title="opencode.jsonc"
|
||||||
{
|
{
|
||||||
"$schema": "https://opencode.ai/config.json",
|
"$schema": "https://opencode.ai/config.json",
|
||||||
// Theme configuration
|
// إعدادات السمة
|
||||||
"theme": "opencode",
|
"theme": "opencode",
|
||||||
"model": "anthropic/claude-sonnet-4-5",
|
"model": "anthropic/claude-sonnet-4-5",
|
||||||
"autoupdate": true,
|
"autoupdate": true,
|
||||||
@@ -326,7 +326,7 @@ opencode run "Hello world"
|
|||||||
"model": "anthropic/claude-sonnet-4-5",
|
"model": "anthropic/claude-sonnet-4-5",
|
||||||
"prompt": "You are a code reviewer. Focus on security, performance, and maintainability.",
|
"prompt": "You are a code reviewer. Focus on security, performance, and maintainability.",
|
||||||
"tools": {
|
"tools": {
|
||||||
// Disable file modification tools for review-only agent
|
// تعطيل أدوات تعديل الملفات لوكيل المراجعة فقط
|
||||||
"write": false,
|
"write": false,
|
||||||
"edit": false,
|
"edit": false,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -221,7 +221,7 @@ How is authentication handled in @packages/functions/src/api/index.ts
|
|||||||
|
|
||||||
انتقل إليه باستخدام مفتاح **Tab**. سترى مؤشرا لذلك في الزاوية السفلية اليمنى.
|
انتقل إليه باستخدام مفتاح **Tab**. سترى مؤشرا لذلك في الزاوية السفلية اليمنى.
|
||||||
|
|
||||||
```bash frame="none" title="Switch to Plan mode"
|
```bash frame="none" title="التبديل إلى وضع Plan"
|
||||||
<TAB>
|
<TAB>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -278,10 +278,10 @@ opencode mcp logout my-oauth-server
|
|||||||
إذا فشل خادم MCP بعيد في المصادقة، يمكنك تشخيص المشكلة باستخدام:
|
إذا فشل خادم MCP بعيد في المصادقة، يمكنك تشخيص المشكلة باستخدام:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# View auth status for all OAuth-capable servers
|
# عرض حالة المصادقة لجميع الخوادم القادرة على OAuth
|
||||||
opencode mcp auth list
|
opencode mcp auth list
|
||||||
|
|
||||||
# Debug connection and OAuth flow for a specific server
|
# تصحيح الاتصال وتدفق OAuth لخادم محدد
|
||||||
opencode mcp debug my-oauth-server
|
opencode mcp debug my-oauth-server
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -12,13 +12,13 @@ description: إعداد الوكلاء والشهادات المخصصة.
|
|||||||
يتبع OpenCode متغيرات بيئة الوكيل القياسية.
|
يتبع OpenCode متغيرات بيئة الوكيل القياسية.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# HTTPS proxy (recommended)
|
# وكيل HTTPS (موصى به)
|
||||||
export HTTPS_PROXY=https://proxy.example.com:8080
|
export HTTPS_PROXY=https://proxy.example.com:8080
|
||||||
|
|
||||||
# HTTP proxy (if HTTPS not available)
|
# وكيل HTTP (إذا لم يتوفر HTTPS)
|
||||||
export HTTP_PROXY=http://proxy.example.com:8080
|
export HTTP_PROXY=http://proxy.example.com:8080
|
||||||
|
|
||||||
# Bypass proxy for local server (required)
|
# تجاوز الوكيل للخادم المحلي (مطلوب)
|
||||||
export NO_PROXY=localhost,127.0.0.1
|
export NO_PROXY=localhost,127.0.0.1
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -89,7 +89,7 @@ OpenCode Zen هي قائمة نماذج يوفّرها فريق OpenCode وقد
|
|||||||
فلا تتردد في فتح PR.
|
فلا تتردد في فتح PR.
|
||||||
|
|
||||||
:::note
|
:::note
|
||||||
ألا ترى مزوّدا هنا؟ أرسل PR.
|
لم تجد المزوّد الذي تبحث عنه؟ أرسل PR.
|
||||||
:::
|
:::
|
||||||
|
|
||||||
---
|
---
|
||||||
@@ -139,13 +139,13 @@ OpenCode Zen هي قائمة نماذج يوفّرها فريق OpenCode وقد
|
|||||||
عيّن أحد متغيرات البيئة التالية أثناء تشغيل opencode:
|
عيّن أحد متغيرات البيئة التالية أثناء تشغيل opencode:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Option 1: Using AWS access keys
|
# الخيار 1: استخدام مفاتيح وصول AWS
|
||||||
AWS_ACCESS_KEY_ID=XXX AWS_SECRET_ACCESS_KEY=YYY opencode
|
AWS_ACCESS_KEY_ID=XXX AWS_SECRET_ACCESS_KEY=YYY opencode
|
||||||
|
|
||||||
# Option 2: Using named AWS profile
|
# الخيار 2: استخدام ملف تعريف AWS مسمّى
|
||||||
AWS_PROFILE=my-profile opencode
|
AWS_PROFILE=my-profile opencode
|
||||||
|
|
||||||
# Option 3: Using Bedrock bearer token
|
# الخيار 3: استخدام رمز Bedrock المميز (bearer token)
|
||||||
AWS_BEARER_TOKEN_BEDROCK=XXX opencode
|
AWS_BEARER_TOKEN_BEDROCK=XXX opencode
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -366,7 +366,7 @@ OPENCODE_ENABLE_EXA=1 opencode
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
### Ignore patterns
|
### أنماط التجاهل
|
||||||
|
|
||||||
لتضمين ملفات يتم تجاهلها عادة، أنشئ ملف `.ignore` في جذر المشروع. يمكن لهذا الملف السماح صراحة بمسارات محددة.
|
لتضمين ملفات يتم تجاهلها عادة، أنشئ ملف `.ignore` في جذر المشروع. يمكن لهذا الملف السماح صراحة بمسارات محددة.
|
||||||
|
|
||||||
|
|||||||
@@ -290,12 +290,12 @@ How is auth handled in @packages/functions/src/api/index.ts?
|
|||||||
<Tabs>
|
<Tabs>
|
||||||
<TabItem label="Linux/macOS">
|
<TabItem label="Linux/macOS">
|
||||||
```bash
|
```bash
|
||||||
# Example for nano or vim
|
# مثال لـ nano أو vim
|
||||||
export EDITOR=nano
|
export EDITOR=nano
|
||||||
export EDITOR=vim
|
export EDITOR=vim
|
||||||
|
|
||||||
# For GUI editors, VS Code, Cursor, VSCodium, Windsurf, Zed, etc.
|
# للمحررات الرسومية، VS Code، Cursor، VSCodium، Windsurf، Zed، إلخ.
|
||||||
# include --wait
|
# قم بتضمين --wait
|
||||||
export EDITOR="code --wait"
|
export EDITOR="code --wait"
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -308,8 +308,8 @@ How is auth handled in @packages/functions/src/api/index.ts?
|
|||||||
```bash
|
```bash
|
||||||
set EDITOR=notepad
|
set EDITOR=notepad
|
||||||
|
|
||||||
# For GUI editors, VS Code, Cursor, VSCodium, Windsurf, Zed, etc.
|
# للمحررات الرسومية، VS Code، Cursor، VSCodium، Windsurf، Zed، إلخ.
|
||||||
# include --wait
|
# قم بتضمين --wait
|
||||||
set EDITOR=code --wait
|
set EDITOR=code --wait
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -321,8 +321,8 @@ How is auth handled in @packages/functions/src/api/index.ts?
|
|||||||
```powershell
|
```powershell
|
||||||
$env:EDITOR = "notepad"
|
$env:EDITOR = "notepad"
|
||||||
|
|
||||||
# For GUI editors, VS Code, Cursor, VSCodium, Windsurf, Zed, etc.
|
# للمحررات الرسومية، VS Code، Cursor، VSCodium، Windsurf، Zed، إلخ.
|
||||||
# include --wait
|
# قم بتضمين --wait
|
||||||
$env:EDITOR = "code --wait"
|
$env:EDITOR = "code --wait"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -113,10 +113,10 @@ OPENCODE_SERVER_PASSWORD=secret opencode web
|
|||||||
يمكنك إرفاق واجهة terminal (TUI) بخادم ويب قيد التشغيل:
|
يمكنك إرفاق واجهة terminal (TUI) بخادم ويب قيد التشغيل:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Start the web server
|
# ابدأ خادم الويب
|
||||||
opencode web --port 4096
|
opencode web --port 4096
|
||||||
|
|
||||||
# In another terminal, attach the TUI
|
# في محطة طرفية أخرى، اربط TUI
|
||||||
opencode attach http://localhost:4096
|
opencode attach http://localhost:4096
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -57,9 +57,9 @@
|
|||||||
"share.opencode_name": "opencode",
|
"share.opencode_name": "opencode",
|
||||||
"share.models": "النماذج",
|
"share.models": "النماذج",
|
||||||
"share.cost": "التكلفة",
|
"share.cost": "التكلفة",
|
||||||
"share.input_tokens": "Input Tokens",
|
"share.input_tokens": "رموز الإدخال",
|
||||||
"share.output_tokens": "Output Tokens",
|
"share.output_tokens": "رموز الإخراج",
|
||||||
"share.reasoning_tokens": "Reasoning Tokens",
|
"share.reasoning_tokens": "رموز التفكير",
|
||||||
"share.scroll_to_bottom": "التمرير إلى الأسفل",
|
"share.scroll_to_bottom": "التمرير إلى الأسفل",
|
||||||
"share.attachment": "مرفق",
|
"share.attachment": "مرفق",
|
||||||
"share.thinking": "تفكير",
|
"share.thinking": "تفكير",
|
||||||
|
|||||||
Reference in New Issue
Block a user