@smart-cloud/ai-kit-ui 1.5.14 → 1.5.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/LocaleDirectionProvider.d.ts +5 -0
- package/dist/index.cjs +9 -9
- package/dist/index.js +9 -9
- package/dist/locale.d.ts +13 -0
- package/package.json +35 -19
- package/eslint.config.js +0 -18
- package/src/ShadowBoundary.tsx +0 -229
- package/src/ai-chatbot/AiChatbot.tsx +0 -2325
- package/src/ai-chatbot/attachmentStorage.ts +0 -238
- package/src/ai-chatbot/index.tsx +0 -1
- package/src/ai-feature/AiFeature.tsx +0 -2334
- package/src/ai-feature/AiFeatureBorder.tsx +0 -22
- package/src/ai-feature/ProofreadDiff.tsx +0 -118
- package/src/ai-feature/index.tsx +0 -2
- package/src/ai-feature/utils.tsx +0 -20
- package/src/doc-search/DocSearch.tsx +0 -1313
- package/src/doc-search/index.tsx +0 -1
- package/src/doc-search/initialFilters.ts +0 -10
- package/src/errorHandling.ts +0 -305
- package/src/i18n/ar.ts +0 -254
- package/src/i18n/de.ts +0 -257
- package/src/i18n/en.ts +0 -269
- package/src/i18n/es.ts +0 -257
- package/src/i18n/fr.ts +0 -258
- package/src/i18n/he.ts +0 -250
- package/src/i18n/hi.ts +0 -256
- package/src/i18n/hu.ts +0 -269
- package/src/i18n/id.ts +0 -256
- package/src/i18n/index.ts +0 -47
- package/src/i18n/it.ts +0 -259
- package/src/i18n/ja.ts +0 -256
- package/src/i18n/ko.ts +0 -254
- package/src/i18n/nb.ts +0 -254
- package/src/i18n/nl.ts +0 -255
- package/src/i18n/pl.ts +0 -258
- package/src/i18n/pt.ts +0 -254
- package/src/i18n/ru.ts +0 -254
- package/src/i18n/sv.ts +0 -253
- package/src/i18n/th.ts +0 -252
- package/src/i18n/tr.ts +0 -256
- package/src/i18n/ua.ts +0 -257
- package/src/i18n/zh.ts +0 -247
- package/src/index.tsx +0 -7
- package/src/poweredBy.tsx +0 -39
- package/src/styles/ai-kit-ui.css +0 -1006
- package/src/useAiRun.ts +0 -182
- package/src/withAiKitShell.tsx +0 -363
- package/tests/ai-disclosures.test.ts +0 -126
- package/tests/doc-search-initial-filters.test.ts +0 -20
- package/tests/error-handling.test.ts +0 -140
- package/tsconfig.json +0 -32
- package/tsconfig.node.json +0 -13
- package/tsconfig.types.json +0 -13
- package/tsup.config.ts +0 -22
package/src/doc-search/index.tsx
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { DocSearch } from "./DocSearch";
|
package/src/errorHandling.ts
DELETED
|
@@ -1,305 +0,0 @@
|
|
|
1
|
-
export type AiRunErrorKind =
|
|
2
|
-
| "cancelled"
|
|
3
|
-
| "human-verification"
|
|
4
|
-
| "authorization"
|
|
5
|
-
| "throttled"
|
|
6
|
-
| "validation"
|
|
7
|
-
| "network"
|
|
8
|
-
| "server"
|
|
9
|
-
| "general";
|
|
10
|
-
|
|
11
|
-
export type HumanVerificationClassification =
|
|
12
|
-
| "TOKEN_REJECTED"
|
|
13
|
-
| "ACTION_REJECTED"
|
|
14
|
-
| "RISK_REJECTED"
|
|
15
|
-
| "PROVIDER_UNAVAILABLE";
|
|
16
|
-
|
|
17
|
-
export type AiRunErrorDetails = {
|
|
18
|
-
kind: AiRunErrorKind;
|
|
19
|
-
status?: number;
|
|
20
|
-
code?: string;
|
|
21
|
-
safeMessage?: string;
|
|
22
|
-
requestId?: string;
|
|
23
|
-
classification?: HumanVerificationClassification;
|
|
24
|
-
retryable?: boolean;
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
export type AiRunErrorFeedback = {
|
|
28
|
-
message: string | null;
|
|
29
|
-
details: AiRunErrorDetails | null;
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
type UnknownRecord = Record<string, unknown>;
|
|
33
|
-
|
|
34
|
-
function asRecord(value: unknown): UnknownRecord | null {
|
|
35
|
-
return value !== null && typeof value === "object" && !Array.isArray(value)
|
|
36
|
-
? (value as UnknownRecord)
|
|
37
|
-
: null;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
function asNonEmptyString(value: unknown): string | undefined {
|
|
41
|
-
if (typeof value !== "string") return undefined;
|
|
42
|
-
const normalized = Array.from(value, (character) => {
|
|
43
|
-
const code = character.charCodeAt(0);
|
|
44
|
-
return code <= 31 || code === 127 ? " " : character;
|
|
45
|
-
})
|
|
46
|
-
.join("")
|
|
47
|
-
.trim();
|
|
48
|
-
return normalized ? normalized.slice(0, 400) : undefined;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
function asStatus(value: unknown): number | undefined {
|
|
52
|
-
const parsed = typeof value === "number" ? value : Number(value);
|
|
53
|
-
return Number.isInteger(parsed) && parsed >= 100 && parsed <= 599
|
|
54
|
-
? parsed
|
|
55
|
-
: undefined;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
function asHumanVerificationClassification(
|
|
59
|
-
value: unknown,
|
|
60
|
-
): HumanVerificationClassification | undefined {
|
|
61
|
-
return value === "TOKEN_REJECTED" ||
|
|
62
|
-
value === "ACTION_REJECTED" ||
|
|
63
|
-
value === "RISK_REJECTED" ||
|
|
64
|
-
value === "PROVIDER_UNAVAILABLE"
|
|
65
|
-
? value
|
|
66
|
-
: undefined;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
function parsePayload(value: unknown): UnknownRecord | null {
|
|
70
|
-
const record = asRecord(value);
|
|
71
|
-
if (record) return record;
|
|
72
|
-
if (typeof value !== "string") return null;
|
|
73
|
-
|
|
74
|
-
const trimmed = value.trim();
|
|
75
|
-
const candidates = [trimmed];
|
|
76
|
-
const firstBrace = trimmed.indexOf("{");
|
|
77
|
-
const lastBrace = trimmed.lastIndexOf("}");
|
|
78
|
-
if (firstBrace >= 0 && lastBrace > firstBrace) {
|
|
79
|
-
candidates.push(trimmed.slice(firstBrace, lastBrace + 1));
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
for (const candidate of candidates) {
|
|
83
|
-
try {
|
|
84
|
-
return asRecord(JSON.parse(candidate));
|
|
85
|
-
} catch {
|
|
86
|
-
// Continue with the next safe JSON candidate.
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
return null;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
function headerValue(headers: unknown, name: string): string | undefined {
|
|
93
|
-
if (headers && typeof (headers as Headers).get === "function") {
|
|
94
|
-
return asNonEmptyString((headers as Headers).get(name));
|
|
95
|
-
}
|
|
96
|
-
const record = asRecord(headers);
|
|
97
|
-
if (!record) return undefined;
|
|
98
|
-
const entry = Object.entries(record).find(
|
|
99
|
-
([key]) => key.toLowerCase() === name.toLowerCase(),
|
|
100
|
-
);
|
|
101
|
-
return asNonEmptyString(entry?.[1]);
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
function collectErrorRecords(error: unknown): UnknownRecord[] {
|
|
105
|
-
const records: UnknownRecord[] = [];
|
|
106
|
-
const visited = new Set<unknown>();
|
|
107
|
-
let current: unknown = error;
|
|
108
|
-
|
|
109
|
-
for (let depth = 0; depth < 4 && current && !visited.has(current); depth++) {
|
|
110
|
-
visited.add(current);
|
|
111
|
-
const record = asRecord(current);
|
|
112
|
-
if (!record) break;
|
|
113
|
-
records.push(record);
|
|
114
|
-
|
|
115
|
-
const response = asRecord(record.response);
|
|
116
|
-
if (response) records.push(response);
|
|
117
|
-
const body = parsePayload(response?.body ?? record.body ?? response?.data);
|
|
118
|
-
if (body) {
|
|
119
|
-
records.push(body);
|
|
120
|
-
const nestedError = asRecord(body.error);
|
|
121
|
-
if (nestedError) records.push(nestedError);
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
const embedded = parsePayload(record.message);
|
|
125
|
-
if (embedded) {
|
|
126
|
-
records.push(embedded);
|
|
127
|
-
const nestedError = asRecord(embedded.error);
|
|
128
|
-
if (nestedError) records.push(nestedError);
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
current = record.cause;
|
|
132
|
-
}
|
|
133
|
-
return records;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
export function isAiRunAbort(error: unknown): boolean {
|
|
137
|
-
const records = collectErrorRecords(error);
|
|
138
|
-
return records.some((record) => {
|
|
139
|
-
const name = asNonEmptyString(record.name) ?? "";
|
|
140
|
-
const code = asNonEmptyString(record.code) ?? "";
|
|
141
|
-
const message = asNonEmptyString(record.message) ?? "";
|
|
142
|
-
return (
|
|
143
|
-
name === "AbortError" ||
|
|
144
|
-
code === "ABORT_ERR" ||
|
|
145
|
-
/\b(?:abort(?:ed)?|cancel(?:led|ed)?)\b/i.test(message)
|
|
146
|
-
);
|
|
147
|
-
});
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
export function normalizeAiRunError(error: unknown): AiRunErrorDetails {
|
|
151
|
-
if (isAiRunAbort(error)) {
|
|
152
|
-
return { kind: "cancelled" };
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
const records = collectErrorRecords(error);
|
|
156
|
-
const status = records
|
|
157
|
-
.map((record) =>
|
|
158
|
-
asStatus(
|
|
159
|
-
record.status ??
|
|
160
|
-
record.statusCode ??
|
|
161
|
-
asRecord(record.$metadata)?.httpStatusCode,
|
|
162
|
-
),
|
|
163
|
-
)
|
|
164
|
-
.find((value) => value !== undefined);
|
|
165
|
-
const code = records
|
|
166
|
-
.map((record) => asNonEmptyString(record.code ?? record.errorCode))
|
|
167
|
-
.find(Boolean);
|
|
168
|
-
const safeMessage = records
|
|
169
|
-
.map((record) =>
|
|
170
|
-
parsePayload(record.message)
|
|
171
|
-
? undefined
|
|
172
|
-
: asNonEmptyString(record.message),
|
|
173
|
-
)
|
|
174
|
-
.find(Boolean);
|
|
175
|
-
const requestId =
|
|
176
|
-
records
|
|
177
|
-
.map((record) =>
|
|
178
|
-
asNonEmptyString(
|
|
179
|
-
record.requestId ??
|
|
180
|
-
record.requestID ??
|
|
181
|
-
record.request_id ??
|
|
182
|
-
asRecord(record.$metadata)?.requestId,
|
|
183
|
-
),
|
|
184
|
-
)
|
|
185
|
-
.find(Boolean) ??
|
|
186
|
-
records
|
|
187
|
-
.map((record) =>
|
|
188
|
-
headerValue(record.headers ?? asRecord(record.response)?.headers, "x-request-id"),
|
|
189
|
-
)
|
|
190
|
-
.find(Boolean);
|
|
191
|
-
const classification = records
|
|
192
|
-
.map((record) =>
|
|
193
|
-
asHumanVerificationClassification(record.classification),
|
|
194
|
-
)
|
|
195
|
-
.find((value) => value !== undefined);
|
|
196
|
-
const retryable = records
|
|
197
|
-
.map((record) =>
|
|
198
|
-
typeof record.retryable === "boolean" ? record.retryable : undefined,
|
|
199
|
-
)
|
|
200
|
-
.find((value) => value !== undefined);
|
|
201
|
-
|
|
202
|
-
const normalizedCode = (code ?? "").toUpperCase();
|
|
203
|
-
const combined = `${normalizedCode} ${safeMessage ?? ""}`;
|
|
204
|
-
let kind: AiRunErrorKind = "general";
|
|
205
|
-
|
|
206
|
-
if (/HUMAN_VERIFICATION|RECAPTCHA|CAPTCHA/.test(combined)) {
|
|
207
|
-
kind = "human-verification";
|
|
208
|
-
} else if (
|
|
209
|
-
status === 401 ||
|
|
210
|
-
status === 403 ||
|
|
211
|
-
/UNAUTH|FORBIDDEN|ACCESS_DENIED|PERMISSION/.test(combined)
|
|
212
|
-
) {
|
|
213
|
-
kind = "authorization";
|
|
214
|
-
} else if (status === 429 || /THROTTL|RATE_LIMIT|TOO_MANY/.test(combined)) {
|
|
215
|
-
kind = "throttled";
|
|
216
|
-
} else if (
|
|
217
|
-
status === 400 ||
|
|
218
|
-
status === 409 ||
|
|
219
|
-
status === 422 ||
|
|
220
|
-
/VALIDATION|INVALID_REQUEST/.test(combined)
|
|
221
|
-
) {
|
|
222
|
-
kind = "validation";
|
|
223
|
-
} else if (
|
|
224
|
-
status === undefined &&
|
|
225
|
-
(error instanceof TypeError ||
|
|
226
|
-
/NETWORK|FAILED TO FETCH|LOAD FAILED|CONNECTION/.test(combined))
|
|
227
|
-
) {
|
|
228
|
-
kind = "network";
|
|
229
|
-
} else if (status !== undefined && status >= 500) {
|
|
230
|
-
kind = "server";
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
return {
|
|
234
|
-
kind,
|
|
235
|
-
status,
|
|
236
|
-
code,
|
|
237
|
-
safeMessage,
|
|
238
|
-
requestId,
|
|
239
|
-
...(classification ? { classification } : {}),
|
|
240
|
-
...(retryable === undefined ? {} : { retryable }),
|
|
241
|
-
};
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
export function getAiRunErrorMessage(
|
|
245
|
-
details: AiRunErrorDetails,
|
|
246
|
-
translate: (message: string) => string = (message) => message,
|
|
247
|
-
): string {
|
|
248
|
-
if (details.code?.toUpperCase() === "MODEL_CAPABILITY_ERROR") {
|
|
249
|
-
return translate(
|
|
250
|
-
"The configured AI model does not support image attachments. Contact the site administrator.",
|
|
251
|
-
);
|
|
252
|
-
}
|
|
253
|
-
if (details.classification === "PROVIDER_UNAVAILABLE") {
|
|
254
|
-
return translate(
|
|
255
|
-
"Human verification is temporarily unavailable. Please try again.",
|
|
256
|
-
);
|
|
257
|
-
}
|
|
258
|
-
const messages: Record<AiRunErrorKind, string> = {
|
|
259
|
-
cancelled: "",
|
|
260
|
-
"human-verification":
|
|
261
|
-
"We couldn't verify that you're human. Please try again.",
|
|
262
|
-
authorization:
|
|
263
|
-
"You are not authorized to use this AI feature. Please sign in or contact the site owner.",
|
|
264
|
-
throttled: "Too many requests. Please wait a moment and try again.",
|
|
265
|
-
validation:
|
|
266
|
-
"The request could not be processed. Review your input and try again.",
|
|
267
|
-
network:
|
|
268
|
-
"We couldn't reach the AI service. Check your connection and try again.",
|
|
269
|
-
server: "The AI service is temporarily unavailable. Please try again.",
|
|
270
|
-
general: "Something went wrong. Please try again.",
|
|
271
|
-
};
|
|
272
|
-
return translate(messages[details.kind]);
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
export function clearAiRunErrorFeedback(): AiRunErrorFeedback {
|
|
276
|
-
return { message: null, details: null };
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
export function createAiRunErrorFeedback(
|
|
280
|
-
error: unknown,
|
|
281
|
-
translate?: (message: string) => string,
|
|
282
|
-
): AiRunErrorFeedback {
|
|
283
|
-
const details = normalizeAiRunError(error);
|
|
284
|
-
return {
|
|
285
|
-
message:
|
|
286
|
-
details.kind === "cancelled"
|
|
287
|
-
? null
|
|
288
|
-
: getAiRunErrorMessage(details, translate),
|
|
289
|
-
details,
|
|
290
|
-
};
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
export class AiRunError extends Error {
|
|
294
|
-
readonly details: AiRunErrorDetails;
|
|
295
|
-
|
|
296
|
-
constructor(
|
|
297
|
-
details: AiRunErrorDetails,
|
|
298
|
-
message: string = getAiRunErrorMessage(details),
|
|
299
|
-
options?: ErrorOptions,
|
|
300
|
-
) {
|
|
301
|
-
super(message, options);
|
|
302
|
-
this.name = "AiRunError";
|
|
303
|
-
this.details = details;
|
|
304
|
-
}
|
|
305
|
-
}
|
package/src/i18n/ar.ts
DELETED
|
@@ -1,254 +0,0 @@
|
|
|
1
|
-
export const arDict: Record<string, string> = {
|
|
2
|
-
"--- Select ---": "--- اختر ---",
|
|
3
|
-
Accept: "قبول",
|
|
4
|
-
"Accept response": "قبول الرد",
|
|
5
|
-
Add: "إضافة",
|
|
6
|
-
"Add image": "إضافة صورة",
|
|
7
|
-
"Additional instructions to guide the AI.":
|
|
8
|
-
"تعليمات إضافية لتوجيه الذكاء الاصطناعي.",
|
|
9
|
-
"AI Assistant": "مساعد الذكاء الاصطناعي",
|
|
10
|
-
"AI Summary": "ملخص الذكاء الاصطناعي",
|
|
11
|
-
"Alt Text": "نص بديل",
|
|
12
|
-
"An error occurred.": "حدث خطأ.",
|
|
13
|
-
"An unknown error occurred.": "حدث خطأ غير معروف.",
|
|
14
|
-
"Answers from {name} are generated by AI and may contain mistakes. Check important information.":
|
|
15
|
-
"تُنشأ إجابات {name} بواسطة الذكاء الاصطناعي وقد تتضمن أخطاء. تحقّق من المعلومات المهمة.",
|
|
16
|
-
Arabic: "عربي",
|
|
17
|
-
"Are you sure you want to reset the conversation?":
|
|
18
|
-
"هل أنت متأكد أنك تريد إعادة ضبط المحادثة؟",
|
|
19
|
-
"As-Is": "بدون تغيير",
|
|
20
|
-
"as-is": "كما هي",
|
|
21
|
-
"Ask anything…": "اسأل أي شيء…",
|
|
22
|
-
"Ask me": "اسألني",
|
|
23
|
-
Assistant: "المساعد",
|
|
24
|
-
"Assistant is thinking…": "المساعد يفكر…",
|
|
25
|
-
"Audio message": "رسالة صوتية",
|
|
26
|
-
"Audio no longer available": "الرسالة الصوتية لم تعد متاحة",
|
|
27
|
-
"Audio recorded": "تم تسجيل الصوت",
|
|
28
|
-
auto: "آلي",
|
|
29
|
-
"Auto-detect": "اكتشاف تلقائي",
|
|
30
|
-
Cancel: "يلغي",
|
|
31
|
-
Caption: "التسمية التوضيحية",
|
|
32
|
-
Casual: "غير رسمي",
|
|
33
|
-
casual: "غير رسمي",
|
|
34
|
-
Categories: "الفئات",
|
|
35
|
-
"Checking capabilities…": "إمكانيات الفحص…",
|
|
36
|
-
"Checking capabilities...": "إمكانيات الفحص…",
|
|
37
|
-
Chinese: "الصينية",
|
|
38
|
-
Clear: "مسح",
|
|
39
|
-
"Clear audio": "مسح الصوت",
|
|
40
|
-
"Click again to confirm": "انقر مرة أخرى للتأكيد",
|
|
41
|
-
Close: "يغلق",
|
|
42
|
-
"Close chat": "إغلاق الدردشة",
|
|
43
|
-
Confirm: "تأكيد",
|
|
44
|
-
Corrected: "تم التصحيح",
|
|
45
|
-
"Creating final summary...": "إنشاء الملخص النهائي...",
|
|
46
|
-
"Creating LanguageDetector session": "إنشاء جلسة كاشف اللغة",
|
|
47
|
-
"Creating LanguageModel session": "إنشاء جلسة نموذج اللغة",
|
|
48
|
-
"Creating Proofreader session": "إنشاء جلسة مدقق لغوي",
|
|
49
|
-
"Creating Rewriter session": "إنشاء جلسة إعادة الكتابة",
|
|
50
|
-
"Creating Summarizer session": "إنشاء جلسة تلخيص",
|
|
51
|
-
"Creating Translator session": "إنشاء جلسة ترجمة",
|
|
52
|
-
"Creating Writer session": "إنشاء جلسة الكتابة",
|
|
53
|
-
"Deciding capability": "القدرة على اتخاذ القرار",
|
|
54
|
-
Description: "وصف",
|
|
55
|
-
"Detecting language": "الكشف عن اللغة",
|
|
56
|
-
"Done.": "منتهي.",
|
|
57
|
-
"Downloading model…": "جارٍ تنزيل النموذج…",
|
|
58
|
-
"Downloading model...": "جارٍ تنزيل النموذج…",
|
|
59
|
-
Dutch: "هولندي",
|
|
60
|
-
Edit: "تعديل",
|
|
61
|
-
"Empty response": "رد فارغ",
|
|
62
|
-
English: "إنجليزي",
|
|
63
|
-
"Enter a search query to start.": "أدخل عبارة بحث للبدء.",
|
|
64
|
-
Error: "خطأ",
|
|
65
|
-
Excerpt: "مقتطفات",
|
|
66
|
-
Filters: "عوامل التصفية",
|
|
67
|
-
Formal: "رَسمِيّ",
|
|
68
|
-
formal: "رَسمِيّ",
|
|
69
|
-
French: "فرنسي",
|
|
70
|
-
Generate: "إنشاء",
|
|
71
|
-
"Generate Image Metadata": "إنشاء بيانات وصفية للصورة",
|
|
72
|
-
"Generate Post Metadata": "إنشاء بيانات وصفية للمقال",
|
|
73
|
-
"Generated content": "المحتوى المُنشأ",
|
|
74
|
-
"Generating text": "إنشاء نص",
|
|
75
|
-
"Generating…": "جارٍ التوليد…",
|
|
76
|
-
"Generating...": "جارٍ التوليد…",
|
|
77
|
-
German: "الألمانية",
|
|
78
|
-
Headline: "العنوان",
|
|
79
|
-
headline: "عنوان رئيسي",
|
|
80
|
-
Hebrew: "العبرية",
|
|
81
|
-
Hide: "يخفي",
|
|
82
|
-
Hindi: "الهندية",
|
|
83
|
-
"Hover highlights to see explanations.":
|
|
84
|
-
"مرر مؤشر الماوس فوق العناصر المميزة للاطلاع على التفسيرات.",
|
|
85
|
-
HTML: "HTML",
|
|
86
|
-
Hungarian: "المجرية",
|
|
87
|
-
"I'm ready to assist you.": "أنا جاهز لمساعدتك.",
|
|
88
|
-
"Image no longer available": "الصورة لم تعد متاحة",
|
|
89
|
-
"Image preview": "معاينة الصورة",
|
|
90
|
-
Indonesian: "إندونيسيا",
|
|
91
|
-
"Initializing on-device AI…": "جارٍ تهيئة الذكاء الاصطناعي على الجهاز…",
|
|
92
|
-
"Initializing on-device AI...": "جارٍ تهيئة الذكاء الاصطناعي على الجهاز…",
|
|
93
|
-
"Inlining images as base64": "تضمين الصور بصيغة base64",
|
|
94
|
-
"Input and output languages cannot be the same.":
|
|
95
|
-
"لا يمكن أن تكون لغات الإدخال والإخراج متطابقة.",
|
|
96
|
-
"Input language": "لغة الإدخال",
|
|
97
|
-
Instructions: "تعليمات",
|
|
98
|
-
"Interface language": "لغة الواجهة",
|
|
99
|
-
Italian: "إيطالي",
|
|
100
|
-
Japanese: "اليابانية",
|
|
101
|
-
"Key Points": "النقاط الرئيسية",
|
|
102
|
-
"key-points": "النقاط الرئيسية",
|
|
103
|
-
Korean: "كوري",
|
|
104
|
-
Length: "طول",
|
|
105
|
-
Long: "طويل",
|
|
106
|
-
long: "طويل",
|
|
107
|
-
Longer: "أطول",
|
|
108
|
-
longer: "أطول",
|
|
109
|
-
Markdown: "Markdown",
|
|
110
|
-
Maximize: "تكبير",
|
|
111
|
-
Medium: "واسطة",
|
|
112
|
-
medium: "واسطة",
|
|
113
|
-
"More casual": "أكثر عفوية",
|
|
114
|
-
"More formal": "أكثر رسمية",
|
|
115
|
-
"more-casual": "أكثر عفوية",
|
|
116
|
-
"more-formal": "أكثر رسمية",
|
|
117
|
-
Neutral: "حيادي",
|
|
118
|
-
neutral: "حيادي",
|
|
119
|
-
No: "لا",
|
|
120
|
-
"No content generated.": "لم يتم إنشاء أي محتوى.",
|
|
121
|
-
"No issues found. Your text looks great!":
|
|
122
|
-
"لم يتم العثور على أي مشاكل. النص يبدو رائعاً!",
|
|
123
|
-
"No overrides": "لا توجد تجاوزات",
|
|
124
|
-
Norwegian: "النرويجية",
|
|
125
|
-
"Not sent": "لم يتم الإرسال",
|
|
126
|
-
"On-device model ready.": "النموذج جاهز للاستخدام على الجهاز.",
|
|
127
|
-
"On-device model ready...": "النموذج على الجهاز جاهز...",
|
|
128
|
-
Options: "خيارات",
|
|
129
|
-
"Output format": "تنسيق الإخراج",
|
|
130
|
-
"Output language": "لغة الإخراج",
|
|
131
|
-
"Plain Text": "نص عادي",
|
|
132
|
-
Polish: "بولندي",
|
|
133
|
-
Portuguese: "البرتغالية",
|
|
134
|
-
"Powered by": "مدعوم بواسطة",
|
|
135
|
-
Preview: "معاينة",
|
|
136
|
-
Proofread: "التدقيق اللغوي",
|
|
137
|
-
"Proofread again": "راجع النص مرة أخرى",
|
|
138
|
-
"Proofread on Backend": "تدقيق لغوي على الخادم",
|
|
139
|
-
Proofreading: "التدقيق اللغوي",
|
|
140
|
-
"Proofreading part {current}/{total}...":
|
|
141
|
-
"جارٍ تدقيق الجزء {current}/{total}...",
|
|
142
|
-
"Ready.": "جاهز.",
|
|
143
|
-
"Received backend response.": "تم استلام رد من الخادم الخلفي.",
|
|
144
|
-
"Receiving response...": "جارٍ استلام الرد...",
|
|
145
|
-
Record: "تسجيل",
|
|
146
|
-
"Record audio": "تسجيل الصوت",
|
|
147
|
-
"Recorded audio:": "صوت مسجّل:",
|
|
148
|
-
"Recording...": "جارٍ التسجيل...",
|
|
149
|
-
Reference: "مرجع",
|
|
150
|
-
References: "المراجع",
|
|
151
|
-
Regenerate: "تجديد",
|
|
152
|
-
"Regenerate on Backend": "إعادة التوليد في الواجهة الخلفية",
|
|
153
|
-
"Reject response": "رفض الرد",
|
|
154
|
-
"Remove image": "إزالة الصورة",
|
|
155
|
-
"Replace with": "استبدل بـ",
|
|
156
|
-
"Requesting signed URL": "طلب عنوان URL موقّع",
|
|
157
|
-
Reset: "إعادة ضبط",
|
|
158
|
-
"Reset conversation": "إعادة ضبط المحادثة",
|
|
159
|
-
"Restore size": "استعادة الحجم",
|
|
160
|
-
Rewrite: "إعادة كتابة",
|
|
161
|
-
"Rewrite again": "أعد الكتابة مرة أخرى",
|
|
162
|
-
"Rewrite on Backend": "إعادة كتابة على الخادم",
|
|
163
|
-
"Rewriting part {current}/{total}...":
|
|
164
|
-
"جارٍ إعادة كتابة الجزء {current}/{total}...",
|
|
165
|
-
"Rewriting text": "إعادة كتابة النص",
|
|
166
|
-
"Running on-device...": "جارٍ التشغيل على الجهاز...",
|
|
167
|
-
Russian: "الروسية",
|
|
168
|
-
Search: "يبحث",
|
|
169
|
-
"Search the documentation…": "ابحث في الوثائق…",
|
|
170
|
-
"Search with AI-Kit": "البحث باستخدام مجموعة أدوات الذكاء الاصطناعي",
|
|
171
|
-
"Searching…": "جارٍ البحث…",
|
|
172
|
-
"Select or type tags…": "اختر أو اكتب الوسوم…",
|
|
173
|
-
"Select or type tags...": "اختر أو اكتب الوسوم…",
|
|
174
|
-
Send: "إرسال",
|
|
175
|
-
"Sending request to backend…": "إرسال الطلب إلى الواجهة الخلفية…",
|
|
176
|
-
"Sending request to server...": "جارٍ إرسال الطلب إلى الخادم...",
|
|
177
|
-
Short: "قصير",
|
|
178
|
-
short: "قصير",
|
|
179
|
-
Shorter: "أقصر",
|
|
180
|
-
shorter: "أقصر",
|
|
181
|
-
Show: "يعرض",
|
|
182
|
-
"Something went wrong.": "حدث خطأ ما.",
|
|
183
|
-
Sources: "مصادر",
|
|
184
|
-
Spanish: "الأسبانية",
|
|
185
|
-
Stop: "قف",
|
|
186
|
-
"Stop recording": "إيقاف التسجيل",
|
|
187
|
-
Subcategories: "الفئات الفرعية",
|
|
188
|
-
"Suggested change": "التغيير المقترح",
|
|
189
|
-
Summarize: "لخص",
|
|
190
|
-
"Summarize again": "أعد التلخيص",
|
|
191
|
-
"Summarize on Backend": "تلخيص على الخادم",
|
|
192
|
-
Summarizing: "ملخص",
|
|
193
|
-
"Summarizing part {current}/{total}...":
|
|
194
|
-
"جارٍ تلخيص الجزء {current}/{total}...",
|
|
195
|
-
Swedish: "السويدية",
|
|
196
|
-
Tags: "الوسوم",
|
|
197
|
-
Teaser: "نص تمهيدي",
|
|
198
|
-
teaser: "إعلان تشويقي",
|
|
199
|
-
Thai: "تايلاندي",
|
|
200
|
-
"The alt text for the image.": "النص البديل للصورة.",
|
|
201
|
-
"The caption for the image.": "التعليق المصاحب للصورة.",
|
|
202
|
-
"The configured AI model does not support image attachments. Contact the site administrator.":
|
|
203
|
-
"نموذج الذكاء الاصطناعي المُعدّ لا يدعم إرفاق الصور. تواصل مع مسؤول الموقع.",
|
|
204
|
-
"The description for the image.": "وصف الصورة.",
|
|
205
|
-
"The excerpt for the post.":
|
|
206
|
-
"اختياري. ملخص قصير قد يظهر في نتائج البحث والمعاينات.",
|
|
207
|
-
"The format for the generated output.": "تنسيق المخرجات المُنشأة.",
|
|
208
|
-
"The language AI-Kit should use for generated text by default (when applicable).":
|
|
209
|
-
"اللغة التي يجب أن يستخدمها برنامج AI-Kit للنصوص المُولّدة افتراضيًا (عند الاقتضاء).",
|
|
210
|
-
"The language of the input text.": "لغة النص المدخل.",
|
|
211
|
-
"The summary style to generate.": "نمط الملخص المراد إنشاؤه.",
|
|
212
|
-
"The target output length.": "طول الإخراج المستهدف.",
|
|
213
|
-
"The title for the image.": "عنوان الصورة.",
|
|
214
|
-
"The title for the post.": "عنوان المنشور.",
|
|
215
|
-
"The tone or style for the AI to use.":
|
|
216
|
-
"النبرة أو الأسلوب الذي سيستخدمه الذكاء الاصطناعي.",
|
|
217
|
-
"The topic or subject for the AI to write about.":
|
|
218
|
-
"الموضوع أو الفكرة التي سيكتب عنها الذكاء الاصطناعي.",
|
|
219
|
-
"This summary was generated by AI and may contain mistakes. Check important information.":
|
|
220
|
-
"أُنشئ هذا الملخص بواسطة الذكاء الاصطناعي وقد يتضمن أخطاء. تحقّق من المعلومات المهمة.",
|
|
221
|
-
Title: "عنوان",
|
|
222
|
-
"TL;DR": "باختصار شديد",
|
|
223
|
-
tldr: "باختصار",
|
|
224
|
-
Tone: "الأسلوب",
|
|
225
|
-
Topic: "الموضوع",
|
|
226
|
-
Translate: "يترجم",
|
|
227
|
-
"Translate again": "ترجم مرة أخرى",
|
|
228
|
-
"Translate on Backend": "ترجمة على الخادم",
|
|
229
|
-
Translating: "الترجمة",
|
|
230
|
-
"Translating text": "جارٍ ترجمة النص",
|
|
231
|
-
"Translating part {current}/{total}...":
|
|
232
|
-
"جارٍ ترجمة الجزء {current}/{total}...",
|
|
233
|
-
Turkish: "تركي",
|
|
234
|
-
Type: "يكتب",
|
|
235
|
-
Ukrainian: "الأوكرانية",
|
|
236
|
-
"Unexpected error": "خطأ غير متوقع",
|
|
237
|
-
Uploading: "جارٍ التحميل",
|
|
238
|
-
"Uploading images via signed URL": "تحميل الصور عبر رابط موقّع",
|
|
239
|
-
User: "المستخدم",
|
|
240
|
-
"View image": "عرض الصورة",
|
|
241
|
-
"Using backend": "استخدام الواجهة الخلفية",
|
|
242
|
-
"Using on-device": "استخدام الجهاز",
|
|
243
|
-
"Waiting for backend response…": "في انتظار رد من الخادم الخلفي…",
|
|
244
|
-
"Waiting for response...": "جارٍ انتظار الرد...",
|
|
245
|
-
Why: "لماذا",
|
|
246
|
-
"Working…": "جارٍ العمل…",
|
|
247
|
-
"Working...": "جارٍ العمل…",
|
|
248
|
-
"WPSuite AI-Kit": "WPSuite AI-Kit",
|
|
249
|
-
Write: "اكتب",
|
|
250
|
-
"Writing part {current}/{total}...": "جارٍ كتابة الجزء {current}/{total}...",
|
|
251
|
-
Yes: "نعم",
|
|
252
|
-
"You need a subscription to use this feature on frontend.":
|
|
253
|
-
"أنت بحاجة إلى اشتراك لاستخدام هذه الميزة في واجهة المستخدم.",
|
|
254
|
-
};
|