@smart-cloud/ai-kit-ui 1.4.10 → 1.4.12
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/index.cjs +6 -6
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +6 -6
- package/package.json +1 -1
- package/src/doc-search/DocSearch.tsx +85 -39
- package/src/i18n/ar.ts +10 -0
- package/src/i18n/de.ts +10 -0
- package/src/i18n/en.ts +10 -0
- package/src/i18n/es.ts +10 -0
- package/src/i18n/fr.ts +10 -0
- package/src/i18n/he.ts +10 -0
- package/src/i18n/hi.ts +10 -0
- package/src/i18n/hu.ts +10 -0
- package/src/i18n/id.ts +10 -0
- package/src/i18n/it.ts +10 -0
- package/src/i18n/ja.ts +10 -0
- package/src/i18n/ko.ts +10 -0
- package/src/i18n/nb.ts +10 -0
- package/src/i18n/nl.ts +10 -0
- package/src/i18n/pl.ts +11 -0
- package/src/i18n/pt.ts +10 -0
- package/src/i18n/ru.ts +10 -0
- package/src/i18n/sv.ts +10 -0
- package/src/i18n/th.ts +10 -0
- package/src/i18n/tr.ts +10 -0
- package/src/i18n/ua.ts +11 -0
- package/src/i18n/zh.ts +10 -0
package/package.json
CHANGED
|
@@ -19,6 +19,7 @@ import {
|
|
|
19
19
|
import {
|
|
20
20
|
AiKitDocSearchIcon,
|
|
21
21
|
CapabilityDecision,
|
|
22
|
+
type ContextKind,
|
|
22
23
|
dispatchBackend,
|
|
23
24
|
resolveBackend,
|
|
24
25
|
sendSearchMessage,
|
|
@@ -51,8 +52,75 @@ I18n.putVocabularies(translations);
|
|
|
51
52
|
|
|
52
53
|
type Props = DocSearchProps & AiKitShellInjectedProps;
|
|
53
54
|
|
|
55
|
+
type MetadataOptions = {
|
|
56
|
+
allowedCategories: Record<string, string[]>;
|
|
57
|
+
allowedTags: string[];
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
const metadataOptionsCache = new Map<string, MetadataOptions>();
|
|
61
|
+
const metadataOptionsRequestCache = new Map<string, Promise<MetadataOptions>>();
|
|
62
|
+
|
|
54
63
|
const USE_AUDIO = false; // Set to true to enable audio recording feature (requires backend support for audio input)
|
|
55
64
|
|
|
65
|
+
async function loadMetadataOptionsFromBackend(
|
|
66
|
+
context: ContextKind,
|
|
67
|
+
): Promise<MetadataOptions> {
|
|
68
|
+
const cached = metadataOptionsCache.get(context);
|
|
69
|
+
if (cached) {
|
|
70
|
+
return cached;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
const inFlight = metadataOptionsRequestCache.get(context);
|
|
74
|
+
if (inFlight) {
|
|
75
|
+
return inFlight;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
const request = (async () => {
|
|
79
|
+
const backend = await resolveBackend();
|
|
80
|
+
|
|
81
|
+
if (!backend.available) {
|
|
82
|
+
throw new Error("Backend not available for metadata options");
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
const decision: CapabilityDecision = {
|
|
86
|
+
feature: "prompt",
|
|
87
|
+
source: "backend",
|
|
88
|
+
mode: "backend-only",
|
|
89
|
+
onDeviceAvailable: false,
|
|
90
|
+
backendAvailable: backend.available,
|
|
91
|
+
backendTransport: backend.transport,
|
|
92
|
+
backendApiName: backend.apiName,
|
|
93
|
+
backendBaseUrl: backend.baseUrl,
|
|
94
|
+
reason: backend.reason ?? "",
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
const data = (await dispatchBackend(
|
|
98
|
+
decision,
|
|
99
|
+
context,
|
|
100
|
+
"/kb/metadata-options",
|
|
101
|
+
"GET",
|
|
102
|
+
null,
|
|
103
|
+
{},
|
|
104
|
+
)) as MetadataOptions;
|
|
105
|
+
|
|
106
|
+
const normalized: MetadataOptions = {
|
|
107
|
+
allowedCategories: data.allowedCategories || {},
|
|
108
|
+
allowedTags: data.allowedTags || [],
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
metadataOptionsCache.set(context, normalized);
|
|
112
|
+
return normalized;
|
|
113
|
+
})();
|
|
114
|
+
|
|
115
|
+
metadataOptionsRequestCache.set(context, request);
|
|
116
|
+
|
|
117
|
+
try {
|
|
118
|
+
return await request;
|
|
119
|
+
} finally {
|
|
120
|
+
metadataOptionsRequestCache.delete(context);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
56
124
|
function groupChunksByDoc(result: SearchResult | null) {
|
|
57
125
|
const docs = result?.citations?.docs ?? [];
|
|
58
126
|
const chunks = result?.citations?.chunks ?? [];
|
|
@@ -157,10 +225,8 @@ const DocSearchBase: FC<Props> = (props) => {
|
|
|
157
225
|
);
|
|
158
226
|
const [selectedTags, setSelectedTags] = useState<string[]>([]);
|
|
159
227
|
const [tagSearchValue, setTagSearchValue] = useState<string>("");
|
|
160
|
-
const [metadataOptions, setMetadataOptions] =
|
|
161
|
-
|
|
162
|
-
allowedTags: string[];
|
|
163
|
-
} | null>(null);
|
|
228
|
+
const [metadataOptions, setMetadataOptions] =
|
|
229
|
+
useState<MetadataOptions | null>(null);
|
|
164
230
|
const [loadingMetadata, setLoadingMetadata] = useState(false);
|
|
165
231
|
const animationFrameRef = useRef<number | null>(null);
|
|
166
232
|
|
|
@@ -351,6 +417,8 @@ const DocSearchBase: FC<Props> = (props) => {
|
|
|
351
417
|
useEffect(() => {
|
|
352
418
|
if (!enableUserFilters) return;
|
|
353
419
|
|
|
420
|
+
if (showOpenButton && !featureOpen) return;
|
|
421
|
+
|
|
354
422
|
// Use provided options if available
|
|
355
423
|
if (availableCategories || availableTags) {
|
|
356
424
|
setMetadataOptions({
|
|
@@ -362,43 +430,14 @@ const DocSearchBase: FC<Props> = (props) => {
|
|
|
362
430
|
|
|
363
431
|
// Otherwise fetch from backend
|
|
364
432
|
const loadMetadata = async () => {
|
|
433
|
+
const effectiveContext: ContextKind =
|
|
434
|
+
context === "admin" ? "admin" : "frontend";
|
|
435
|
+
|
|
365
436
|
setLoadingMetadata(true);
|
|
366
437
|
try {
|
|
367
|
-
const
|
|
368
|
-
|
|
369
|
-
if (!backend.available) {
|
|
370
|
-
console.error("Backend not available for metadata options");
|
|
371
|
-
return;
|
|
372
|
-
}
|
|
438
|
+
const data = await loadMetadataOptionsFromBackend(effectiveContext);
|
|
373
439
|
|
|
374
|
-
|
|
375
|
-
feature: "prompt",
|
|
376
|
-
source: "backend",
|
|
377
|
-
mode: "backend-only",
|
|
378
|
-
onDeviceAvailable: false,
|
|
379
|
-
backendAvailable: backend.available,
|
|
380
|
-
backendTransport: backend.transport,
|
|
381
|
-
backendApiName: backend.apiName,
|
|
382
|
-
backendBaseUrl: backend.baseUrl,
|
|
383
|
-
reason: backend.reason ?? "",
|
|
384
|
-
};
|
|
385
|
-
|
|
386
|
-
const data = (await dispatchBackend(
|
|
387
|
-
decision,
|
|
388
|
-
context ?? "frontend",
|
|
389
|
-
"/kb/metadata-options",
|
|
390
|
-
"GET",
|
|
391
|
-
null,
|
|
392
|
-
{},
|
|
393
|
-
)) as {
|
|
394
|
-
allowedCategories: Record<string, string[]>;
|
|
395
|
-
allowedTags: string[];
|
|
396
|
-
};
|
|
397
|
-
|
|
398
|
-
setMetadataOptions({
|
|
399
|
-
allowedCategories: data.allowedCategories || {},
|
|
400
|
-
allowedTags: data.allowedTags || [],
|
|
401
|
-
});
|
|
440
|
+
setMetadataOptions(data);
|
|
402
441
|
} catch (error) {
|
|
403
442
|
console.error("Failed to load metadata options:", error);
|
|
404
443
|
} finally {
|
|
@@ -407,7 +446,14 @@ const DocSearchBase: FC<Props> = (props) => {
|
|
|
407
446
|
};
|
|
408
447
|
|
|
409
448
|
void loadMetadata();
|
|
410
|
-
}, [
|
|
449
|
+
}, [
|
|
450
|
+
enableUserFilters,
|
|
451
|
+
availableCategories,
|
|
452
|
+
availableTags,
|
|
453
|
+
context,
|
|
454
|
+
featureOpen,
|
|
455
|
+
showOpenButton,
|
|
456
|
+
]);
|
|
411
457
|
|
|
412
458
|
const onSearch = useCallback(async () => {
|
|
413
459
|
let q: string | undefined;
|
package/src/i18n/ar.ts
CHANGED
|
@@ -31,6 +31,7 @@ export const arDict: Record<string, string> = {
|
|
|
31
31
|
casual: "غير رسمي",
|
|
32
32
|
Categories: "الفئات",
|
|
33
33
|
"Checking capabilities…": "إمكانيات الفحص…",
|
|
34
|
+
"Checking capabilities...": "إمكانيات الفحص…",
|
|
34
35
|
Chinese: "الصينية",
|
|
35
36
|
Clear: "مسح",
|
|
36
37
|
"Clear audio": "مسح الصوت",
|
|
@@ -52,6 +53,7 @@ export const arDict: Record<string, string> = {
|
|
|
52
53
|
"Detecting language": "الكشف عن اللغة",
|
|
53
54
|
"Done.": "منتهي.",
|
|
54
55
|
"Downloading model…": "جارٍ تنزيل النموذج…",
|
|
56
|
+
"Downloading model...": "جارٍ تنزيل النموذج…",
|
|
55
57
|
Dutch: "هولندي",
|
|
56
58
|
Edit: "تعديل",
|
|
57
59
|
"Empty response": "رد فارغ",
|
|
@@ -69,6 +71,7 @@ export const arDict: Record<string, string> = {
|
|
|
69
71
|
"Generated content": "المحتوى المُنشأ",
|
|
70
72
|
"Generating text": "إنشاء نص",
|
|
71
73
|
"Generating…": "جارٍ التوليد…",
|
|
74
|
+
"Generating...": "جارٍ التوليد…",
|
|
72
75
|
German: "الألمانية",
|
|
73
76
|
Headline: "العنوان",
|
|
74
77
|
headline: "عنوان رئيسي",
|
|
@@ -81,13 +84,16 @@ export const arDict: Record<string, string> = {
|
|
|
81
84
|
Hungarian: "المجرية",
|
|
82
85
|
"I'm ready to assist you.": "أنا جاهز لمساعدتك.",
|
|
83
86
|
"Image no longer available": "الصورة لم تعد متاحة",
|
|
87
|
+
"Image preview": "معاينة الصورة",
|
|
84
88
|
Indonesian: "إندونيسيا",
|
|
85
89
|
"Initializing on-device AI…": "جارٍ تهيئة الذكاء الاصطناعي على الجهاز…",
|
|
90
|
+
"Initializing on-device AI...": "جارٍ تهيئة الذكاء الاصطناعي على الجهاز…",
|
|
86
91
|
"Inlining images as base64": "تضمين الصور بصيغة base64",
|
|
87
92
|
"Input and output languages cannot be the same.":
|
|
88
93
|
"لا يمكن أن تكون لغات الإدخال والإخراج متطابقة.",
|
|
89
94
|
"Input language": "لغة الإدخال",
|
|
90
95
|
Instructions: "تعليمات",
|
|
96
|
+
"Interface language": "لغة الواجهة",
|
|
91
97
|
Italian: "إيطالي",
|
|
92
98
|
Japanese: "اليابانية",
|
|
93
99
|
"Key Points": "النقاط الرئيسية",
|
|
@@ -162,6 +168,7 @@ export const arDict: Record<string, string> = {
|
|
|
162
168
|
"Search with AI-Kit": "البحث باستخدام مجموعة أدوات الذكاء الاصطناعي",
|
|
163
169
|
"Searching…": "جارٍ البحث…",
|
|
164
170
|
"Select or type tags…": "اختر أو اكتب الوسوم…",
|
|
171
|
+
"Select or type tags...": "اختر أو اكتب الوسوم…",
|
|
165
172
|
Send: "إرسال",
|
|
166
173
|
"Sending request to backend…": "إرسال الطلب إلى الواجهة الخلفية…",
|
|
167
174
|
"Sending request to server...": "جارٍ إرسال الطلب إلى الخادم...",
|
|
@@ -214,6 +221,7 @@ export const arDict: Record<string, string> = {
|
|
|
214
221
|
"Translate again": "ترجم مرة أخرى",
|
|
215
222
|
"Translate on Backend": "ترجمة على الخادم",
|
|
216
223
|
Translating: "الترجمة",
|
|
224
|
+
"Translating text": "جارٍ ترجمة النص",
|
|
217
225
|
"Translating part {current}/{total}...":
|
|
218
226
|
"جارٍ ترجمة الجزء {current}/{total}...",
|
|
219
227
|
Turkish: "تركي",
|
|
@@ -223,12 +231,14 @@ export const arDict: Record<string, string> = {
|
|
|
223
231
|
Uploading: "جارٍ التحميل",
|
|
224
232
|
"Uploading images via signed URL": "تحميل الصور عبر رابط موقّع",
|
|
225
233
|
User: "المستخدم",
|
|
234
|
+
"View image": "عرض الصورة",
|
|
226
235
|
"Using backend": "استخدام الواجهة الخلفية",
|
|
227
236
|
"Using on-device": "استخدام الجهاز",
|
|
228
237
|
"Waiting for backend response…": "في انتظار رد من الخادم الخلفي…",
|
|
229
238
|
"Waiting for response...": "جارٍ انتظار الرد...",
|
|
230
239
|
Why: "لماذا",
|
|
231
240
|
"Working…": "جارٍ العمل…",
|
|
241
|
+
"Working...": "جارٍ العمل…",
|
|
232
242
|
"WPSuite AI-Kit": "WPSuite AI-Kit",
|
|
233
243
|
Write: "اكتب",
|
|
234
244
|
"Writing part {current}/{total}...": "جارٍ كتابة الجزء {current}/{total}...",
|
package/src/i18n/de.ts
CHANGED
|
@@ -31,6 +31,7 @@ export const deDict: Record<string, string> = {
|
|
|
31
31
|
casual: "locker",
|
|
32
32
|
Categories: "Kategorien",
|
|
33
33
|
"Checking capabilities…": "Fähigkeiten werden geprüft…",
|
|
34
|
+
"Checking capabilities...": "Fähigkeiten werden geprüft…",
|
|
34
35
|
Chinese: "Chinesisch",
|
|
35
36
|
Clear: "Leeren",
|
|
36
37
|
"Clear audio": "Audio löschen",
|
|
@@ -52,6 +53,7 @@ export const deDict: Record<string, string> = {
|
|
|
52
53
|
"Detecting language": "Spracherkennung",
|
|
53
54
|
"Done.": "Fertig.",
|
|
54
55
|
"Downloading model…": "Modell wird heruntergeladen…",
|
|
56
|
+
"Downloading model...": "Modell wird heruntergeladen…",
|
|
55
57
|
Dutch: "Niederländisch",
|
|
56
58
|
Edit: "Bearbeiten",
|
|
57
59
|
"Empty response": "Leere Antwort",
|
|
@@ -69,6 +71,7 @@ export const deDict: Record<string, string> = {
|
|
|
69
71
|
"Generated content": "Generierter Inhalt",
|
|
70
72
|
"Generating text": "Text wird generiert",
|
|
71
73
|
"Generating…": "Wird generiert…",
|
|
74
|
+
"Generating...": "Wird generiert…",
|
|
72
75
|
German: "Deutsch",
|
|
73
76
|
Headline: "Überschrift",
|
|
74
77
|
headline: "Überschrift",
|
|
@@ -81,13 +84,16 @@ export const deDict: Record<string, string> = {
|
|
|
81
84
|
Hungarian: "Ungarisch",
|
|
82
85
|
"I'm ready to assist you.": "Ich bin bereit, dir zu helfen.",
|
|
83
86
|
"Image no longer available": "Bild ist nicht mehr verfügbar",
|
|
87
|
+
"Image preview": "Bildvorschau",
|
|
84
88
|
Indonesian: "Indonesisch",
|
|
85
89
|
"Initializing on-device AI…": "On-Device-KI wird initialisiert…",
|
|
90
|
+
"Initializing on-device AI...": "On-Device-KI wird initialisiert…",
|
|
86
91
|
"Inlining images as base64": "Bilder werden als Base64 eingebettet",
|
|
87
92
|
"Input and output languages cannot be the same.":
|
|
88
93
|
"Eingabe- und Ausgabesprache dürfen nicht identisch sein.",
|
|
89
94
|
"Input language": "Eingabesprache",
|
|
90
95
|
Instructions: "Anweisungen",
|
|
96
|
+
"Interface language": "Sprache der Oberfläche",
|
|
91
97
|
Italian: "Italienisch",
|
|
92
98
|
Japanese: "Japanisch",
|
|
93
99
|
"Key Points": "Kernaussagen",
|
|
@@ -162,6 +168,7 @@ export const deDict: Record<string, string> = {
|
|
|
162
168
|
"Search with AI-Kit": "Mit AI-Kit suchen",
|
|
163
169
|
"Searching…": "Suche…",
|
|
164
170
|
"Select or type tags…": "Tags auswählen oder eingeben…",
|
|
171
|
+
"Select or type tags...": "Tags auswählen oder eingeben…",
|
|
165
172
|
Send: "Senden",
|
|
166
173
|
"Sending request to backend…": "Anfrage wird an das Backend gesendet…",
|
|
167
174
|
"Sending request to server...": "Anfrage wird an den Server gesendet...",
|
|
@@ -215,6 +222,7 @@ export const deDict: Record<string, string> = {
|
|
|
215
222
|
"Translate again": "Erneut übersetzen",
|
|
216
223
|
"Translate on Backend": "Serverseitig übersetzen",
|
|
217
224
|
Translating: "Übersetzung",
|
|
225
|
+
"Translating text": "Text wird übersetzt",
|
|
218
226
|
"Translating part {current}/{total}...":
|
|
219
227
|
"Teil {current}/{total} wird übersetzt...",
|
|
220
228
|
Turkish: "Türkisch",
|
|
@@ -225,12 +233,14 @@ export const deDict: Record<string, string> = {
|
|
|
225
233
|
"Uploading images via signed URL":
|
|
226
234
|
"Bilder werden per signierter URL hochgeladen",
|
|
227
235
|
User: "Benutzer",
|
|
236
|
+
"View image": "Bild ansehen",
|
|
228
237
|
"Using backend": "Backend wird verwendet",
|
|
229
238
|
"Using on-device": "On-Device wird verwendet",
|
|
230
239
|
"Waiting for backend response…": "Warte auf Backend-Antwort…",
|
|
231
240
|
"Waiting for response...": "Warten auf Antwort...",
|
|
232
241
|
Why: "Warum",
|
|
233
242
|
"Working…": "Arbeite…",
|
|
243
|
+
"Working...": "Arbeite…",
|
|
234
244
|
"WPSuite AI-Kit": "WPSuite AI-Kit",
|
|
235
245
|
Write: "Schreiben",
|
|
236
246
|
"Writing part {current}/{total}...":
|
package/src/i18n/en.ts
CHANGED
|
@@ -31,6 +31,7 @@ export const enDict: Record<string, string> = {
|
|
|
31
31
|
casual: "casual",
|
|
32
32
|
Categories: "Categories",
|
|
33
33
|
"Checking capabilities…": "Checking capabilities…",
|
|
34
|
+
"Checking capabilities...": "Checking capabilities…",
|
|
34
35
|
Chinese: "Chinese",
|
|
35
36
|
Clear: "Clear",
|
|
36
37
|
"Clear audio": "Clear audio",
|
|
@@ -52,6 +53,7 @@ export const enDict: Record<string, string> = {
|
|
|
52
53
|
"Detecting language": "Detecting language",
|
|
53
54
|
"Done.": "Done.",
|
|
54
55
|
"Downloading model…": "Downloading model…",
|
|
56
|
+
"Downloading model...": "Downloading model…",
|
|
55
57
|
Dutch: "Dutch",
|
|
56
58
|
Edit: "Edit",
|
|
57
59
|
"Empty response": "Empty response",
|
|
@@ -69,6 +71,7 @@ export const enDict: Record<string, string> = {
|
|
|
69
71
|
"Generated content": "Generated content",
|
|
70
72
|
"Generating text": "Generating text",
|
|
71
73
|
"Generating…": "Generating…",
|
|
74
|
+
"Generating...": "Generating…",
|
|
72
75
|
German: "German",
|
|
73
76
|
Headline: "Headline",
|
|
74
77
|
headline: "headline",
|
|
@@ -81,13 +84,16 @@ export const enDict: Record<string, string> = {
|
|
|
81
84
|
Hungarian: "Hungarian",
|
|
82
85
|
"I'm ready to assist you.": "I'm ready to assist you.",
|
|
83
86
|
"Image no longer available": "Image no longer available",
|
|
87
|
+
"Image preview": "Image preview",
|
|
84
88
|
Indonesian: "Indonesian",
|
|
85
89
|
"Initializing on-device AI…": "Initializing on-device AI…",
|
|
90
|
+
"Initializing on-device AI...": "Initializing on-device AI…",
|
|
86
91
|
"Inlining images as base64": "Inlining images as base64",
|
|
87
92
|
"Input and output languages cannot be the same.":
|
|
88
93
|
"Input and output languages cannot be the same.",
|
|
89
94
|
"Input language": "Input language",
|
|
90
95
|
Instructions: "Instructions",
|
|
96
|
+
"Interface language": "Interface language",
|
|
91
97
|
Italian: "Italian",
|
|
92
98
|
Japanese: "Japanese",
|
|
93
99
|
"Key Points": "Key Points",
|
|
@@ -161,6 +167,7 @@ export const enDict: Record<string, string> = {
|
|
|
161
167
|
"Search with AI-Kit": "Search with AI-Kit",
|
|
162
168
|
"Searching…": "Searching…",
|
|
163
169
|
"Select or type tags…": "Select or type tags…",
|
|
170
|
+
"Select or type tags...": "Select or type tags…",
|
|
164
171
|
Send: "Send",
|
|
165
172
|
"Sending request to backend…": "Sending request to backend…",
|
|
166
173
|
"Sending request to server...": "Sending request to server...",
|
|
@@ -214,6 +221,7 @@ export const enDict: Record<string, string> = {
|
|
|
214
221
|
"Translate again": "Translate again",
|
|
215
222
|
"Translate on Backend": "Translate on Backend",
|
|
216
223
|
Translating: "Translating",
|
|
224
|
+
"Translating text": "Translating text",
|
|
217
225
|
"Translating part {current}/{total}...":
|
|
218
226
|
"Translating part {current}/{total}...",
|
|
219
227
|
Turkish: "Turkish",
|
|
@@ -223,12 +231,14 @@ export const enDict: Record<string, string> = {
|
|
|
223
231
|
Uploading: "Uploading",
|
|
224
232
|
"Uploading images via signed URL": "Uploading images via signed URL",
|
|
225
233
|
User: "User",
|
|
234
|
+
"View image": "View image",
|
|
226
235
|
"Using backend": "Using backend",
|
|
227
236
|
"Using on-device": "Using on-device",
|
|
228
237
|
"Waiting for backend response…": "Waiting for backend response…",
|
|
229
238
|
"Waiting for response...": "Waiting for response...",
|
|
230
239
|
Why: "Why",
|
|
231
240
|
"Working…": "Working…",
|
|
241
|
+
"Working...": "Working…",
|
|
232
242
|
"WPSuite AI-Kit": "WPSuite AI-Kit",
|
|
233
243
|
Write: "Write",
|
|
234
244
|
"Writing part {current}/{total}...": "Writing part {current}/{total}...",
|
package/src/i18n/es.ts
CHANGED
|
@@ -31,6 +31,7 @@ export const esDict: Record<string, string> = {
|
|
|
31
31
|
casual: "casual",
|
|
32
32
|
Categories: "Categorías",
|
|
33
33
|
"Checking capabilities…": "Comprobando capacidades…",
|
|
34
|
+
"Checking capabilities...": "Comprobando capacidades…",
|
|
34
35
|
Chinese: "Chino",
|
|
35
36
|
Clear: "Borrar",
|
|
36
37
|
"Clear audio": "Borrar audio",
|
|
@@ -53,6 +54,7 @@ export const esDict: Record<string, string> = {
|
|
|
53
54
|
"Detecting language": "Detectar el lenguaje",
|
|
54
55
|
"Done.": "Hecho.",
|
|
55
56
|
"Downloading model…": "Descargando modelo…",
|
|
57
|
+
"Downloading model...": "Descargando modelo…",
|
|
56
58
|
Dutch: "Holandés",
|
|
57
59
|
Edit: "Editar",
|
|
58
60
|
"Empty response": "Respuesta vacía",
|
|
@@ -71,6 +73,7 @@ export const esDict: Record<string, string> = {
|
|
|
71
73
|
"Generated content": "Contenido generado",
|
|
72
74
|
"Generating text": "Generando texto",
|
|
73
75
|
"Generating…": "Generando…",
|
|
76
|
+
"Generating...": "Generando…",
|
|
74
77
|
German: "Alemán",
|
|
75
78
|
Headline: "Titular",
|
|
76
79
|
headline: "titular",
|
|
@@ -83,13 +86,16 @@ export const esDict: Record<string, string> = {
|
|
|
83
86
|
Hungarian: "húngaro",
|
|
84
87
|
"I'm ready to assist you.": "Estoy listo para ayudarte.",
|
|
85
88
|
"Image no longer available": "La imagen ya no está disponible",
|
|
89
|
+
"Image preview": "Vista previa de la imagen",
|
|
86
90
|
Indonesian: "indonesio",
|
|
87
91
|
"Initializing on-device AI…": "Inicializando IA en el dispositivo…",
|
|
92
|
+
"Initializing on-device AI...": "Inicializando IA en el dispositivo…",
|
|
88
93
|
"Inlining images as base64": "Inserción de imágenes en base64",
|
|
89
94
|
"Input and output languages cannot be the same.":
|
|
90
95
|
"Los idiomas de entrada y salida no pueden ser el mismo.",
|
|
91
96
|
"Input language": "Idioma de entrada",
|
|
92
97
|
Instructions: "Instrucciones",
|
|
98
|
+
"Interface language": "Idioma de la interfaz",
|
|
93
99
|
Italian: "italiano",
|
|
94
100
|
Japanese: "japonés",
|
|
95
101
|
"Key Points": "Puntos clave",
|
|
@@ -164,6 +170,7 @@ export const esDict: Record<string, string> = {
|
|
|
164
170
|
"Search with AI-Kit": "Buscar con AI-Kit",
|
|
165
171
|
"Searching…": "Búsqueda…",
|
|
166
172
|
"Select or type tags…": "Selecciona o escribe etiquetas…",
|
|
173
|
+
"Select or type tags...": "Selecciona o escribe etiquetas…",
|
|
167
174
|
Send: "Enviar",
|
|
168
175
|
"Sending request to backend…": "Enviando solicitud al backend…",
|
|
169
176
|
"Sending request to server...": "Enviando solicitud al servidor...",
|
|
@@ -216,6 +223,7 @@ export const esDict: Record<string, string> = {
|
|
|
216
223
|
"Translate again": "Traducir de nuevo",
|
|
217
224
|
"Translate on Backend": "Traducir en el backend",
|
|
218
225
|
Translating: "Traductorio",
|
|
226
|
+
"Translating text": "Traduciendo texto",
|
|
219
227
|
"Translating part {current}/{total}...":
|
|
220
228
|
"Traduciendo la parte {current}/{total}...",
|
|
221
229
|
Turkish: "turco",
|
|
@@ -225,12 +233,14 @@ export const esDict: Record<string, string> = {
|
|
|
225
233
|
Uploading: "Subiendo",
|
|
226
234
|
"Uploading images via signed URL": "Subir imágenes a través de URL firmada",
|
|
227
235
|
User: "Usuario",
|
|
236
|
+
"View image": "Ver imagen",
|
|
228
237
|
"Using backend": "Usando backend",
|
|
229
238
|
"Using on-device": "Uso en el dispositivo",
|
|
230
239
|
"Waiting for backend response…": "Esperando la respuesta del backend…",
|
|
231
240
|
"Waiting for response...": "Esperando respuesta...",
|
|
232
241
|
Why: "Por qué",
|
|
233
242
|
"Working…": "Trabajando…",
|
|
243
|
+
"Working...": "Trabajando…",
|
|
234
244
|
"WPSuite AI-Kit": "WPSuite AI-Kit",
|
|
235
245
|
Write: "Escribir",
|
|
236
246
|
"Writing part {current}/{total}...":
|
package/src/i18n/fr.ts
CHANGED
|
@@ -31,6 +31,7 @@ export const frDict: Record<string, string> = {
|
|
|
31
31
|
casual: "décontracté",
|
|
32
32
|
Categories: "Catégories",
|
|
33
33
|
"Checking capabilities…": "Vérification des capacités…",
|
|
34
|
+
"Checking capabilities...": "Vérification des capacités…",
|
|
34
35
|
Chinese: "Chinois",
|
|
35
36
|
Clear: "Effacer",
|
|
36
37
|
"Clear audio": "Effacer l’audio",
|
|
@@ -53,6 +54,7 @@ export const frDict: Record<string, string> = {
|
|
|
53
54
|
"Detecting language": "Détection du langage",
|
|
54
55
|
"Done.": "Fait.",
|
|
55
56
|
"Downloading model…": "Téléchargement du modèle…",
|
|
57
|
+
"Downloading model...": "Téléchargement du modèle…",
|
|
56
58
|
Dutch: "Néerlandais",
|
|
57
59
|
Edit: "Modifier",
|
|
58
60
|
"Empty response": "Réponse vide",
|
|
@@ -71,6 +73,7 @@ export const frDict: Record<string, string> = {
|
|
|
71
73
|
"Generated content": "Contenu généré",
|
|
72
74
|
"Generating text": "Générer du texte",
|
|
73
75
|
"Generating…": "Génération…",
|
|
76
|
+
"Generating...": "Génération…",
|
|
74
77
|
German: "Allemand",
|
|
75
78
|
Headline: "Titre",
|
|
76
79
|
headline: "titre",
|
|
@@ -83,13 +86,16 @@ export const frDict: Record<string, string> = {
|
|
|
83
86
|
Hungarian: "hongrois",
|
|
84
87
|
"I'm ready to assist you.": "Je suis prêt à vous aider.",
|
|
85
88
|
"Image no longer available": "L’image n’est plus disponible",
|
|
89
|
+
"Image preview": "Aperçu de l'image",
|
|
86
90
|
Indonesian: "indonésien",
|
|
87
91
|
"Initializing on-device AI…": "Initialisation de l'IA embarquée…",
|
|
92
|
+
"Initializing on-device AI...": "Initialisation de l'IA embarquée…",
|
|
88
93
|
"Inlining images as base64": "Intégration des images en base64",
|
|
89
94
|
"Input and output languages cannot be the same.":
|
|
90
95
|
"Les langues d'entrée et de sortie ne peuvent pas être identiques.",
|
|
91
96
|
"Input language": "Langue d'entrée",
|
|
92
97
|
Instructions: "Instructions",
|
|
98
|
+
"Interface language": "Langue de l'interface",
|
|
93
99
|
Italian: "italien",
|
|
94
100
|
Japanese: "japonais",
|
|
95
101
|
"Key Points": "Points clés",
|
|
@@ -164,6 +170,7 @@ export const frDict: Record<string, string> = {
|
|
|
164
170
|
"Search with AI-Kit": "Rechercher avec AI-Kit",
|
|
165
171
|
"Searching…": "Recherche…",
|
|
166
172
|
"Select or type tags…": "Sélectionnez ou saisissez des tags…",
|
|
173
|
+
"Select or type tags...": "Sélectionnez ou saisissez des tags…",
|
|
167
174
|
Send: "Envoyer",
|
|
168
175
|
"Sending request to backend…": "Envoi de la requête au serveur…",
|
|
169
176
|
"Sending request to server...": "Envoi de la requête au serveur...",
|
|
@@ -216,6 +223,7 @@ export const frDict: Record<string, string> = {
|
|
|
216
223
|
"Translate again": "Traduire à nouveau",
|
|
217
224
|
"Translate on Backend": "Traduction côté serveur",
|
|
218
225
|
Translating: "Traduire",
|
|
226
|
+
"Translating text": "Traduction du texte",
|
|
219
227
|
"Translating part {current}/{total}...":
|
|
220
228
|
"Traduction de la partie {current}/{total}...",
|
|
221
229
|
Turkish: "turc",
|
|
@@ -226,12 +234,14 @@ export const frDict: Record<string, string> = {
|
|
|
226
234
|
"Uploading images via signed URL":
|
|
227
235
|
"Téléchargement d'images via une URL signée",
|
|
228
236
|
User: "Utilisateur",
|
|
237
|
+
"View image": "Voir l'image",
|
|
229
238
|
"Using backend": "Utilisation du backend",
|
|
230
239
|
"Using on-device": "Utilisation sur l'appareil",
|
|
231
240
|
"Waiting for backend response…": "En attente de la réponse du serveur…",
|
|
232
241
|
"Waiting for response...": "En attente de la réponse...",
|
|
233
242
|
Why: "Pourquoi",
|
|
234
243
|
"Working…": "Traitement…",
|
|
244
|
+
"Working...": "Traitement…",
|
|
235
245
|
"WPSuite AI-Kit": "WPSuite AI-Kit",
|
|
236
246
|
Write: "Écrire",
|
|
237
247
|
"Writing part {current}/{total}...":
|
package/src/i18n/he.ts
CHANGED
|
@@ -31,6 +31,7 @@ export const heDict: Record<string, string> = {
|
|
|
31
31
|
casual: "אַגָבִי",
|
|
32
32
|
Categories: "קטגוריות",
|
|
33
33
|
"Checking capabilities…": "בודק יכולות…",
|
|
34
|
+
"Checking capabilities...": "בודק יכולות…",
|
|
34
35
|
Chinese: "סִינִית",
|
|
35
36
|
Clear: "נקה",
|
|
36
37
|
"Clear audio": "ניקוי אודיו",
|
|
@@ -52,6 +53,7 @@ export const heDict: Record<string, string> = {
|
|
|
52
53
|
"Detecting language": "זיהוי שפה",
|
|
53
54
|
"Done.": "נַעֲשָׂה.",
|
|
54
55
|
"Downloading model…": "מוריד מודל…",
|
|
56
|
+
"Downloading model...": "מוריד מודל…",
|
|
55
57
|
Dutch: "הוֹלַנדִי",
|
|
56
58
|
Edit: "עריכה",
|
|
57
59
|
"Empty response": "תשובה ריקה",
|
|
@@ -69,6 +71,7 @@ export const heDict: Record<string, string> = {
|
|
|
69
71
|
"Generated content": "תוכן שנוצר",
|
|
70
72
|
"Generating text": "יצירת טקסט",
|
|
71
73
|
"Generating…": "יוצר…",
|
|
74
|
+
"Generating...": "יוצר…",
|
|
72
75
|
German: "גֶרמָנִיָת",
|
|
73
76
|
Headline: "כּוֹתֶרֶת",
|
|
74
77
|
headline: "כּוֹתֶרֶת",
|
|
@@ -81,13 +84,16 @@ export const heDict: Record<string, string> = {
|
|
|
81
84
|
Hungarian: "הוּנגָרִי",
|
|
82
85
|
"I'm ready to assist you.": "אני מוכן לעזור לך.",
|
|
83
86
|
"Image no longer available": "התמונה אינה זמינה יותר",
|
|
87
|
+
"Image preview": "תצוגה מקדימה של התמונה",
|
|
84
88
|
Indonesian: "אינדונזית",
|
|
85
89
|
"Initializing on-device AI…": "מאתחל את הבינה המלאכותית במכשיר…",
|
|
90
|
+
"Initializing on-device AI...": "מאתחל את הבינה המלאכותית במכשיר…",
|
|
86
91
|
"Inlining images as base64": "תמונות מוטבעות כ-base64",
|
|
87
92
|
"Input and output languages cannot be the same.":
|
|
88
93
|
"שפות קלט ופלט לא יכולות להיות זהות.",
|
|
89
94
|
"Input language": "שפת קלט",
|
|
90
95
|
Instructions: "הוראות",
|
|
96
|
+
"Interface language": "שפת הממשק",
|
|
91
97
|
Italian: "אִיטַלְקִית",
|
|
92
98
|
Japanese: "יַפָּנִית",
|
|
93
99
|
"Key Points": "נקודות מפתח",
|
|
@@ -160,6 +166,7 @@ export const heDict: Record<string, string> = {
|
|
|
160
166
|
"Search with AI-Kit": "חיפוש עם ערכת בינה מלאכותית",
|
|
161
167
|
"Searching…": "מחפש...",
|
|
162
168
|
"Select or type tags…": "בחר או הקלד תגיות…",
|
|
169
|
+
"Select or type tags...": "בחר או הקלד תגיות…",
|
|
163
170
|
Send: "שלח",
|
|
164
171
|
"Sending request to backend…": "שולח בקשה לשרת האחורי…",
|
|
165
172
|
"Sending request to server...": "שולח בקשה לשרת...",
|
|
@@ -211,6 +218,7 @@ export const heDict: Record<string, string> = {
|
|
|
211
218
|
"Translate again": "תרגם שוב",
|
|
212
219
|
"Translate on Backend": "תרגום בשרת",
|
|
213
220
|
Translating: "תִרגוּם",
|
|
221
|
+
"Translating text": "מתרגם טקסט",
|
|
214
222
|
"Translating part {current}/{total}...": "מתרגם חלק {current}/{total}...",
|
|
215
223
|
Turkish: "טוּרקִית",
|
|
216
224
|
Type: "סוּג",
|
|
@@ -219,12 +227,14 @@ export const heDict: Record<string, string> = {
|
|
|
219
227
|
Uploading: "מעלה",
|
|
220
228
|
"Uploading images via signed URL": "העלאת תמונות דרך כתובת URL חתומה",
|
|
221
229
|
User: "משתמש",
|
|
230
|
+
"View image": "הצג תמונה",
|
|
222
231
|
"Using backend": "שימוש בקצה האחורי",
|
|
223
232
|
"Using on-device": "שימוש במכשיר",
|
|
224
233
|
"Waiting for backend response…": "ממתין לתגובת ה-backend…",
|
|
225
234
|
"Waiting for response...": "ממתין לתגובה...",
|
|
226
235
|
Why: "מַדוּעַ",
|
|
227
236
|
"Working…": "עובד…",
|
|
237
|
+
"Working...": "עובד…",
|
|
228
238
|
"WPSuite AI-Kit": "WPSuite AI-Kit",
|
|
229
239
|
Write: "כתוב",
|
|
230
240
|
"Writing part {current}/{total}...": "כותב חלק {current}/{total}...",
|