@smart-cloud/ai-kit-ui 1.3.6 → 1.3.7
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 +9 -9
- package/dist/index.d.cts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +9 -9
- package/package.json +2 -2
- package/src/doc-search/DocSearch.tsx +276 -13
- package/src/i18n/ar.ts +16 -10
- package/src/i18n/de.ts +16 -10
- package/src/i18n/en.ts +6 -0
- package/src/i18n/es.ts +16 -10
- package/src/i18n/fr.ts +16 -10
- package/src/i18n/he.ts +16 -10
- package/src/i18n/hi.ts +16 -10
- package/src/i18n/hu.ts +16 -10
- package/src/i18n/id.ts +16 -10
- package/src/i18n/it.ts +16 -10
- package/src/i18n/ja.ts +16 -10
- package/src/i18n/ko.ts +16 -10
- package/src/i18n/nb.ts +16 -10
- package/src/i18n/nl.ts +16 -10
- package/src/i18n/pl.ts +16 -10
- package/src/i18n/pt.ts +16 -10
- package/src/i18n/ru.ts +16 -10
- package/src/i18n/sv.ts +16 -10
- package/src/i18n/th.ts +16 -10
- package/src/i18n/tr.ts +16 -10
- package/src/i18n/ua.ts +16 -10
- package/src/i18n/zh.ts +16 -10
- package/src/withAiKitShell.tsx +34 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smart-cloud/ai-kit-ui",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"@emotion/cache": "^11.14.0",
|
|
21
21
|
"@emotion/react": "^11.14.0",
|
|
22
22
|
"@mantine/colors-generator": "^8.3.15",
|
|
23
|
-
"@smart-cloud/ai-kit-core": "^1.3.
|
|
23
|
+
"@smart-cloud/ai-kit-core": "^1.3.6",
|
|
24
24
|
"@smart-cloud/wpsuite-core": "^2.2.6",
|
|
25
25
|
"@tabler/icons-react": "^3.36.1",
|
|
26
26
|
"chroma-js": "^3.2.0",
|
|
@@ -2,10 +2,13 @@ import {
|
|
|
2
2
|
Alert,
|
|
3
3
|
Anchor,
|
|
4
4
|
Button,
|
|
5
|
+
Checkbox,
|
|
6
|
+
Collapse,
|
|
5
7
|
Divider,
|
|
6
8
|
Group,
|
|
7
9
|
Loader,
|
|
8
10
|
Modal,
|
|
11
|
+
MultiSelect,
|
|
9
12
|
Paper,
|
|
10
13
|
Progress,
|
|
11
14
|
Stack,
|
|
@@ -15,6 +18,9 @@ import {
|
|
|
15
18
|
} from "@mantine/core";
|
|
16
19
|
import {
|
|
17
20
|
AiKitDocSearchIcon,
|
|
21
|
+
CapabilityDecision,
|
|
22
|
+
dispatchBackend,
|
|
23
|
+
resolveBackend,
|
|
18
24
|
sendSearchMessage,
|
|
19
25
|
type AiKitStatusEvent,
|
|
20
26
|
type DocSearchProps,
|
|
@@ -26,14 +32,20 @@ import ReactMarkdown from "react-markdown";
|
|
|
26
32
|
import rehypeRaw from "rehype-raw";
|
|
27
33
|
import remarkGfm from "remark-gfm";
|
|
28
34
|
|
|
29
|
-
import {
|
|
30
|
-
|
|
35
|
+
import {
|
|
36
|
+
IconChevronDown,
|
|
37
|
+
IconChevronRight,
|
|
38
|
+
IconMicrophone,
|
|
39
|
+
IconMicrophoneOff,
|
|
40
|
+
IconSearch,
|
|
41
|
+
IconX,
|
|
42
|
+
} from "@tabler/icons-react";
|
|
31
43
|
|
|
32
44
|
import { AiFeatureBorder } from "../ai-feature/AiFeatureBorder";
|
|
33
45
|
import { translations } from "../i18n";
|
|
46
|
+
import { PoweredBy } from "../poweredBy";
|
|
34
47
|
import { useAiRun } from "../useAiRun";
|
|
35
48
|
import { AiKitShellInjectedProps, withAiKitShell } from "../withAiKitShell";
|
|
36
|
-
import { PoweredBy } from "../poweredBy";
|
|
37
49
|
|
|
38
50
|
I18n.putVocabularies(translations);
|
|
39
51
|
|
|
@@ -80,6 +92,9 @@ const DocSearchBase: FC<Props> = (props) => {
|
|
|
80
92
|
showSources = true,
|
|
81
93
|
topK = 10,
|
|
82
94
|
getSearchText,
|
|
95
|
+
enableUserFilters = false,
|
|
96
|
+
availableCategories,
|
|
97
|
+
availableTags,
|
|
83
98
|
|
|
84
99
|
variation,
|
|
85
100
|
rootElement,
|
|
@@ -98,6 +113,20 @@ const DocSearchBase: FC<Props> = (props) => {
|
|
|
98
113
|
const audioChunksRef = useRef<Blob[]>([]);
|
|
99
114
|
const audioContextRef = useRef<AudioContext | null>(null);
|
|
100
115
|
const analyserRef = useRef<AnalyserNode | null>(null);
|
|
116
|
+
|
|
117
|
+
// User filter states
|
|
118
|
+
const [filtersOpen, setFiltersOpen] = useState(false);
|
|
119
|
+
const [selectedCategories, setSelectedCategories] = useState<string[]>([]);
|
|
120
|
+
const [selectedSubcategories, setSelectedSubcategories] = useState<string[]>(
|
|
121
|
+
[],
|
|
122
|
+
);
|
|
123
|
+
const [selectedTags, setSelectedTags] = useState<string[]>([]);
|
|
124
|
+
const [tagSearchValue, setTagSearchValue] = useState<string>("");
|
|
125
|
+
const [metadataOptions, setMetadataOptions] = useState<{
|
|
126
|
+
allowedCategories: Record<string, string[]>;
|
|
127
|
+
allowedTags: string[];
|
|
128
|
+
} | null>(null);
|
|
129
|
+
const [loadingMetadata, setLoadingMetadata] = useState(false);
|
|
101
130
|
const animationFrameRef = useRef<number | null>(null);
|
|
102
131
|
|
|
103
132
|
// Audio cache: store uploaded audio to avoid re-uploading within session
|
|
@@ -265,6 +294,68 @@ const DocSearchBase: FC<Props> = (props) => {
|
|
|
265
294
|
};
|
|
266
295
|
}, []);
|
|
267
296
|
|
|
297
|
+
// Load metadata options when user filters are enabled
|
|
298
|
+
useEffect(() => {
|
|
299
|
+
if (!enableUserFilters) return;
|
|
300
|
+
|
|
301
|
+
// Use provided options if available
|
|
302
|
+
if (availableCategories || availableTags) {
|
|
303
|
+
setMetadataOptions({
|
|
304
|
+
allowedCategories: availableCategories || {},
|
|
305
|
+
allowedTags: availableTags || [],
|
|
306
|
+
});
|
|
307
|
+
return;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
// Otherwise fetch from backend
|
|
311
|
+
const loadMetadata = async () => {
|
|
312
|
+
setLoadingMetadata(true);
|
|
313
|
+
try {
|
|
314
|
+
const backend = await resolveBackend();
|
|
315
|
+
|
|
316
|
+
if (!backend.available) {
|
|
317
|
+
console.error("Backend not available for metadata options");
|
|
318
|
+
return;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
const decision: CapabilityDecision = {
|
|
322
|
+
feature: "prompt",
|
|
323
|
+
source: "backend",
|
|
324
|
+
mode: "backend-only",
|
|
325
|
+
onDeviceAvailable: false,
|
|
326
|
+
backendAvailable: backend.available,
|
|
327
|
+
backendTransport: backend.transport,
|
|
328
|
+
backendApiName: backend.apiName,
|
|
329
|
+
backendBaseUrl: backend.baseUrl,
|
|
330
|
+
reason: backend.reason ?? "",
|
|
331
|
+
};
|
|
332
|
+
|
|
333
|
+
const data = (await dispatchBackend(
|
|
334
|
+
decision,
|
|
335
|
+
context ?? "frontend",
|
|
336
|
+
"/kb/metadata-options",
|
|
337
|
+
"GET",
|
|
338
|
+
null,
|
|
339
|
+
{},
|
|
340
|
+
)) as {
|
|
341
|
+
allowedCategories: Record<string, string[]>;
|
|
342
|
+
allowedTags: string[];
|
|
343
|
+
};
|
|
344
|
+
|
|
345
|
+
setMetadataOptions({
|
|
346
|
+
allowedCategories: data.allowedCategories || {},
|
|
347
|
+
allowedTags: data.allowedTags || [],
|
|
348
|
+
});
|
|
349
|
+
} catch (error) {
|
|
350
|
+
console.error("Failed to load metadata options:", error);
|
|
351
|
+
} finally {
|
|
352
|
+
setLoadingMetadata(false);
|
|
353
|
+
}
|
|
354
|
+
};
|
|
355
|
+
|
|
356
|
+
void loadMetadata();
|
|
357
|
+
}, [enableUserFilters, availableCategories, availableTags, context]);
|
|
358
|
+
|
|
268
359
|
const onSearch = useCallback(async () => {
|
|
269
360
|
let q: string | undefined;
|
|
270
361
|
|
|
@@ -313,16 +404,39 @@ const DocSearchBase: FC<Props> = (props) => {
|
|
|
313
404
|
...(q && { query: q }),
|
|
314
405
|
...(audioBlob && { audio: audioBlob }), // Pass Blob directly
|
|
315
406
|
topK,
|
|
407
|
+
// Include user-selected filters if enabled
|
|
408
|
+
...(enableUserFilters &&
|
|
409
|
+
selectedCategories.length > 0 && {
|
|
410
|
+
userSelectedCategories: selectedCategories,
|
|
411
|
+
}),
|
|
412
|
+
...(enableUserFilters &&
|
|
413
|
+
selectedSubcategories.length > 0 && {
|
|
414
|
+
userSelectedSubcategories: selectedSubcategories,
|
|
415
|
+
}),
|
|
416
|
+
...(enableUserFilters &&
|
|
417
|
+
selectedTags.length > 0 && { userSelectedTags: selectedTags }),
|
|
316
418
|
},
|
|
317
419
|
{ signal, onStatus, context },
|
|
318
420
|
);
|
|
319
421
|
});
|
|
320
|
-
}, [
|
|
422
|
+
}, [
|
|
423
|
+
context,
|
|
424
|
+
inputText,
|
|
425
|
+
audioBlob,
|
|
426
|
+
run,
|
|
427
|
+
reset,
|
|
428
|
+
topK,
|
|
429
|
+
sessionId,
|
|
430
|
+
enableUserFilters,
|
|
431
|
+
selectedCategories,
|
|
432
|
+
selectedSubcategories,
|
|
433
|
+
selectedTags,
|
|
434
|
+
]);
|
|
321
435
|
|
|
322
436
|
const close = useCallback(async () => {
|
|
323
437
|
setFeatureOpen(false);
|
|
324
438
|
reset();
|
|
325
|
-
autoRunOnceRef.current = false;
|
|
439
|
+
//autoRunOnceRef.current = false;
|
|
326
440
|
if (!showOpenButton) {
|
|
327
441
|
onClose();
|
|
328
442
|
}
|
|
@@ -423,7 +537,7 @@ const DocSearchBase: FC<Props> = (props) => {
|
|
|
423
537
|
variation === "modal" ? Modal.Body : Group;
|
|
424
538
|
|
|
425
539
|
useEffect(() => {
|
|
426
|
-
if (variation !== "modal") {
|
|
540
|
+
if (variation !== "modal" || !featureOpen) {
|
|
427
541
|
return;
|
|
428
542
|
}
|
|
429
543
|
document.body.style.overflow = "hidden";
|
|
@@ -438,7 +552,7 @@ const DocSearchBase: FC<Props> = (props) => {
|
|
|
438
552
|
document.body.style.overflow = "";
|
|
439
553
|
document.body.onkeydown = null;
|
|
440
554
|
};
|
|
441
|
-
}, [close, variation]);
|
|
555
|
+
}, [close, variation, featureOpen]);
|
|
442
556
|
|
|
443
557
|
return (
|
|
444
558
|
<>
|
|
@@ -487,6 +601,8 @@ const DocSearchBase: FC<Props> = (props) => {
|
|
|
487
601
|
w="100%"
|
|
488
602
|
style={{
|
|
489
603
|
left: 0,
|
|
604
|
+
...(variation === "modal" &&
|
|
605
|
+
!result?.result && { overflow: "visible" }),
|
|
490
606
|
}}
|
|
491
607
|
>
|
|
492
608
|
{variation === "modal" && (
|
|
@@ -496,7 +612,14 @@ const DocSearchBase: FC<Props> = (props) => {
|
|
|
496
612
|
<Modal.CloseButton />
|
|
497
613
|
</Modal.Header>
|
|
498
614
|
)}
|
|
499
|
-
<BodyComponent
|
|
615
|
+
<BodyComponent
|
|
616
|
+
w="100%"
|
|
617
|
+
style={{
|
|
618
|
+
zIndex: 1001,
|
|
619
|
+
...(variation === "modal" &&
|
|
620
|
+
!result?.result && { overflow: "visible" }),
|
|
621
|
+
}}
|
|
622
|
+
>
|
|
500
623
|
<AiFeatureBorder
|
|
501
624
|
enabled={variation !== "modal"}
|
|
502
625
|
working={busy}
|
|
@@ -629,6 +752,151 @@ const DocSearchBase: FC<Props> = (props) => {
|
|
|
629
752
|
) : null}
|
|
630
753
|
</Group>
|
|
631
754
|
|
|
755
|
+
{/* Empty state */}
|
|
756
|
+
{!busy && !error && !result?.result ? (
|
|
757
|
+
<Text size="sm" c="dimmed" data-doc-search-no-results>
|
|
758
|
+
{I18n.get("Enter a search query to start.")}
|
|
759
|
+
</Text>
|
|
760
|
+
) : null}
|
|
761
|
+
|
|
762
|
+
{/* User filter collapse */}
|
|
763
|
+
{enableUserFilters && metadataOptions && (
|
|
764
|
+
<Stack gap="xs">
|
|
765
|
+
<Button
|
|
766
|
+
variant="subtle"
|
|
767
|
+
size="xs"
|
|
768
|
+
onClick={() => setFiltersOpen(!filtersOpen)}
|
|
769
|
+
leftSection={
|
|
770
|
+
filtersOpen ? (
|
|
771
|
+
<IconChevronDown size={14} />
|
|
772
|
+
) : (
|
|
773
|
+
<IconChevronRight size={14} />
|
|
774
|
+
)
|
|
775
|
+
}
|
|
776
|
+
style={{ alignSelf: "flex-start" }}
|
|
777
|
+
>
|
|
778
|
+
{I18n.get("Filters")}
|
|
779
|
+
</Button>
|
|
780
|
+
|
|
781
|
+
<Collapse in={filtersOpen}>
|
|
782
|
+
<Stack gap="md">
|
|
783
|
+
{/* Main categories as checkboxes */}
|
|
784
|
+
{Object.keys(metadataOptions.allowedCategories)
|
|
785
|
+
.length > 0 && (
|
|
786
|
+
<div>
|
|
787
|
+
<Text size="sm" fw={500} mb="xs">
|
|
788
|
+
{I18n.get("Categories")}
|
|
789
|
+
</Text>
|
|
790
|
+
<Group gap="md">
|
|
791
|
+
{Object.keys(
|
|
792
|
+
metadataOptions.allowedCategories,
|
|
793
|
+
).map((category) => (
|
|
794
|
+
<Checkbox
|
|
795
|
+
key={category}
|
|
796
|
+
label={category}
|
|
797
|
+
checked={selectedCategories.includes(
|
|
798
|
+
category,
|
|
799
|
+
)}
|
|
800
|
+
onChange={(e) => {
|
|
801
|
+
if (e.currentTarget.checked) {
|
|
802
|
+
setSelectedCategories([
|
|
803
|
+
...selectedCategories,
|
|
804
|
+
category,
|
|
805
|
+
]);
|
|
806
|
+
} else {
|
|
807
|
+
setSelectedCategories(
|
|
808
|
+
selectedCategories.filter(
|
|
809
|
+
(c) => c !== category,
|
|
810
|
+
),
|
|
811
|
+
);
|
|
812
|
+
// Remove subcategories of unchecked category
|
|
813
|
+
const subcatsToRemove =
|
|
814
|
+
metadataOptions.allowedCategories[
|
|
815
|
+
category
|
|
816
|
+
] || [];
|
|
817
|
+
setSelectedSubcategories(
|
|
818
|
+
selectedSubcategories.filter(
|
|
819
|
+
(sc) =>
|
|
820
|
+
!subcatsToRemove.includes(sc),
|
|
821
|
+
),
|
|
822
|
+
);
|
|
823
|
+
}
|
|
824
|
+
}}
|
|
825
|
+
disabled={busy || loadingMetadata}
|
|
826
|
+
/>
|
|
827
|
+
))}
|
|
828
|
+
</Group>
|
|
829
|
+
</div>
|
|
830
|
+
)}
|
|
831
|
+
|
|
832
|
+
{/* Subcategories for selected categories */}
|
|
833
|
+
{selectedCategories.length > 0 && (
|
|
834
|
+
<div>
|
|
835
|
+
<Text size="sm" fw={500} mb="xs">
|
|
836
|
+
{I18n.get("Subcategories")}
|
|
837
|
+
</Text>
|
|
838
|
+
<Group gap="md">
|
|
839
|
+
{selectedCategories
|
|
840
|
+
.flatMap(
|
|
841
|
+
(cat) =>
|
|
842
|
+
metadataOptions.allowedCategories[
|
|
843
|
+
cat
|
|
844
|
+
] || [],
|
|
845
|
+
)
|
|
846
|
+
.filter(
|
|
847
|
+
(subcat, index, self) =>
|
|
848
|
+
self.indexOf(subcat) === index,
|
|
849
|
+
)
|
|
850
|
+
.map((subcat) => (
|
|
851
|
+
<Checkbox
|
|
852
|
+
key={subcat}
|
|
853
|
+
label={subcat}
|
|
854
|
+
checked={selectedSubcategories.includes(
|
|
855
|
+
subcat,
|
|
856
|
+
)}
|
|
857
|
+
onChange={(e) => {
|
|
858
|
+
if (e.currentTarget.checked) {
|
|
859
|
+
setSelectedSubcategories([
|
|
860
|
+
...selectedSubcategories,
|
|
861
|
+
subcat,
|
|
862
|
+
]);
|
|
863
|
+
} else {
|
|
864
|
+
setSelectedSubcategories(
|
|
865
|
+
selectedSubcategories.filter(
|
|
866
|
+
(sc) => sc !== subcat,
|
|
867
|
+
),
|
|
868
|
+
);
|
|
869
|
+
}
|
|
870
|
+
}}
|
|
871
|
+
disabled={busy || loadingMetadata}
|
|
872
|
+
/>
|
|
873
|
+
))}
|
|
874
|
+
</Group>
|
|
875
|
+
</div>
|
|
876
|
+
)}
|
|
877
|
+
|
|
878
|
+
{/* Tags input */}
|
|
879
|
+
{metadataOptions.allowedTags.length > 0 && (
|
|
880
|
+
<MultiSelect
|
|
881
|
+
label={I18n.get("Tags")}
|
|
882
|
+
placeholder={I18n.get("Select or type tags...")}
|
|
883
|
+
data={metadataOptions.allowedTags}
|
|
884
|
+
value={selectedTags}
|
|
885
|
+
onChange={setSelectedTags}
|
|
886
|
+
searchValue={tagSearchValue}
|
|
887
|
+
onSearchChange={setTagSearchValue}
|
|
888
|
+
disabled={busy || loadingMetadata}
|
|
889
|
+
searchable
|
|
890
|
+
clearable
|
|
891
|
+
maxDropdownHeight={200}
|
|
892
|
+
limit={20}
|
|
893
|
+
/>
|
|
894
|
+
)}
|
|
895
|
+
</Stack>
|
|
896
|
+
</Collapse>
|
|
897
|
+
</Stack>
|
|
898
|
+
)}
|
|
899
|
+
|
|
632
900
|
{
|
|
633
901
|
/* Audio level indicator when recording */ USE_AUDIO && (
|
|
634
902
|
<>
|
|
@@ -816,11 +1084,6 @@ const DocSearchBase: FC<Props> = (props) => {
|
|
|
816
1084
|
</Stack>
|
|
817
1085
|
</>
|
|
818
1086
|
) : null}
|
|
819
|
-
{!busy && !error && !result?.result ? (
|
|
820
|
-
<Text size="sm" c="dimmed" data-doc-search-no-results>
|
|
821
|
-
{I18n.get("Enter a search query to start.")}
|
|
822
|
-
</Text>
|
|
823
|
-
) : null}
|
|
824
1087
|
<PoweredBy variation={variation} />
|
|
825
1088
|
</Stack>
|
|
826
1089
|
</Paper>
|
package/src/i18n/ar.ts
CHANGED
|
@@ -20,19 +20,20 @@ export const arDict: Record<string, string> = {
|
|
|
20
20
|
"Ask me": "اسألني",
|
|
21
21
|
Assistant: "المساعد",
|
|
22
22
|
"Assistant is thinking…": "المساعد يفكر…",
|
|
23
|
-
"Audio message": "
|
|
24
|
-
"Audio no longer available": "
|
|
25
|
-
"Audio recorded": "
|
|
23
|
+
"Audio message": "",
|
|
24
|
+
"Audio no longer available": "",
|
|
25
|
+
"Audio recorded": "",
|
|
26
26
|
auto: "آلي",
|
|
27
27
|
"Auto-detect": "الكشف التلقائي",
|
|
28
28
|
Cancel: "يلغي",
|
|
29
29
|
Caption: "التسمية التوضيحية",
|
|
30
30
|
Casual: "غير رسمي",
|
|
31
31
|
casual: "غير رسمي",
|
|
32
|
+
Categories: "الفئات",
|
|
32
33
|
"Checking capabilities…": "إمكانيات الفحص…",
|
|
33
34
|
Chinese: "الصينية",
|
|
34
|
-
Clear: "
|
|
35
|
-
"Clear audio": "
|
|
35
|
+
Clear: "",
|
|
36
|
+
"Clear audio": "",
|
|
36
37
|
"Click again to confirm": "انقر مرة أخرى للتأكيد",
|
|
37
38
|
Close: "يغلق",
|
|
38
39
|
"Close chat": "إغلاق الدردشة",
|
|
@@ -57,6 +58,7 @@ export const arDict: Record<string, string> = {
|
|
|
57
58
|
"Enter a search query to start.": "أدخل عبارة بحث للبدء.",
|
|
58
59
|
Error: "خطأ",
|
|
59
60
|
Excerpt: "مقتطفات",
|
|
61
|
+
Filters: "عوامل التصفية",
|
|
60
62
|
Formal: "رَسمِيّ",
|
|
61
63
|
formal: "رَسمِيّ",
|
|
62
64
|
French: "فرنسي",
|
|
@@ -77,7 +79,7 @@ export const arDict: Record<string, string> = {
|
|
|
77
79
|
HTML: "HTML",
|
|
78
80
|
Hungarian: "المجرية",
|
|
79
81
|
"I'm ready to assist you.": "أنا جاهز لمساعدتك.",
|
|
80
|
-
"Image no longer available": "
|
|
82
|
+
"Image no longer available": "",
|
|
81
83
|
Indonesian: "إندونيسيا",
|
|
82
84
|
"Initializing on-device AI…": "جارٍ تهيئة الذكاء الاصطناعي على الجهاز…",
|
|
83
85
|
"Inlining images as base64": "تضمين الصور بصيغة base64",
|
|
@@ -129,9 +131,10 @@ export const arDict: Record<string, string> = {
|
|
|
129
131
|
"Ready.": "جاهز.",
|
|
130
132
|
"Received backend response.": "تم استلام رد من الخادم الخلفي.",
|
|
131
133
|
"Receiving response...": "جارٍ استلام الرد...",
|
|
132
|
-
Record: "
|
|
133
|
-
"Record audio": "
|
|
134
|
-
"
|
|
134
|
+
Record: "",
|
|
135
|
+
"Record audio": "",
|
|
136
|
+
"Recorded audio:": "صوت مسجّل:",
|
|
137
|
+
"Recording...": "",
|
|
135
138
|
Reference: "مرجع",
|
|
136
139
|
References: "المراجع",
|
|
137
140
|
Regenerate: "تجديد",
|
|
@@ -153,6 +156,7 @@ export const arDict: Record<string, string> = {
|
|
|
153
156
|
"Search the documentation…": "ابحث في الوثائق…",
|
|
154
157
|
"Search with AI-Kit": "البحث باستخدام مجموعة أدوات الذكاء الاصطناعي",
|
|
155
158
|
"Searching…": "جارٍ البحث…",
|
|
159
|
+
"Select or type tags…": "اختر أو اكتب الوسوم…",
|
|
156
160
|
Send: "إرسال",
|
|
157
161
|
"Sending request to backend…": "إرسال الطلب إلى الواجهة الخلفية…",
|
|
158
162
|
"Sending request to server...": "جارٍ إرسال الطلب إلى الخادم...",
|
|
@@ -165,13 +169,15 @@ export const arDict: Record<string, string> = {
|
|
|
165
169
|
Sources: "مصادر",
|
|
166
170
|
Spanish: "الأسبانية",
|
|
167
171
|
Stop: "قف",
|
|
168
|
-
"Stop recording": "
|
|
172
|
+
"Stop recording": "",
|
|
173
|
+
Subcategories: "الفئات الفرعية",
|
|
169
174
|
"Suggested change": "التغيير المقترح",
|
|
170
175
|
Summarize: "لخص",
|
|
171
176
|
"Summarize again": "أعد التلخيص",
|
|
172
177
|
"Summarize on Backend": "تلخيص على الواجهة الخلفية",
|
|
173
178
|
Summarizing: "ملخص",
|
|
174
179
|
Swedish: "السويدية",
|
|
180
|
+
Tags: "الوسوم",
|
|
175
181
|
Teaser: "إعلان تشويقي",
|
|
176
182
|
teaser: "إعلان تشويقي",
|
|
177
183
|
Thai: "تايلاندي",
|
package/src/i18n/de.ts
CHANGED
|
@@ -20,19 +20,20 @@ export const deDict: Record<string, string> = {
|
|
|
20
20
|
"Ask me": "Frag mich",
|
|
21
21
|
Assistant: "Assistent",
|
|
22
22
|
"Assistant is thinking…": "Der Assistent denkt nach…",
|
|
23
|
-
"Audio message": "
|
|
24
|
-
"Audio no longer available": "
|
|
25
|
-
"Audio recorded": "
|
|
23
|
+
"Audio message": "",
|
|
24
|
+
"Audio no longer available": "",
|
|
25
|
+
"Audio recorded": "",
|
|
26
26
|
auto: "automatisch",
|
|
27
27
|
"Auto-detect": "Automatisch erkennen",
|
|
28
28
|
Cancel: "Abbrechen",
|
|
29
29
|
Caption: "Bildunterschrift",
|
|
30
30
|
Casual: "Locker",
|
|
31
31
|
casual: "locker",
|
|
32
|
+
Categories: "Kategorien",
|
|
32
33
|
"Checking capabilities…": "Fähigkeiten werden geprüft…",
|
|
33
34
|
Chinese: "Chinesisch",
|
|
34
|
-
Clear: "
|
|
35
|
-
"Clear audio": "
|
|
35
|
+
Clear: "",
|
|
36
|
+
"Clear audio": "",
|
|
36
37
|
"Click again to confirm": "Zum Bestätigen erneut klicken",
|
|
37
38
|
Close: "Schließen",
|
|
38
39
|
"Close chat": "Chat schließen",
|
|
@@ -57,6 +58,7 @@ export const deDict: Record<string, string> = {
|
|
|
57
58
|
"Enter a search query to start.": "Geben Sie zunächst eine Suchanfrage ein.",
|
|
58
59
|
Error: "Fehler",
|
|
59
60
|
Excerpt: "Auszug",
|
|
61
|
+
Filters: "Filter",
|
|
60
62
|
Formal: "Formell",
|
|
61
63
|
formal: "formell",
|
|
62
64
|
French: "Französisch",
|
|
@@ -77,7 +79,7 @@ export const deDict: Record<string, string> = {
|
|
|
77
79
|
HTML: "HTML",
|
|
78
80
|
Hungarian: "Ungarisch",
|
|
79
81
|
"I'm ready to assist you.": "Ich bin bereit, dir zu helfen.",
|
|
80
|
-
"Image no longer available": "
|
|
82
|
+
"Image no longer available": "",
|
|
81
83
|
Indonesian: "Indonesisch",
|
|
82
84
|
"Initializing on-device AI…": "On-Device-KI wird initialisiert…",
|
|
83
85
|
"Inlining images as base64": "Bilder werden als Base64 eingebettet",
|
|
@@ -129,9 +131,10 @@ export const deDict: Record<string, string> = {
|
|
|
129
131
|
"Ready.": "Bereit.",
|
|
130
132
|
"Received backend response.": "Backend-Antwort erhalten.",
|
|
131
133
|
"Receiving response...": "Antwort wird empfangen...",
|
|
132
|
-
Record: "
|
|
133
|
-
"Record audio": "
|
|
134
|
-
"
|
|
134
|
+
Record: "",
|
|
135
|
+
"Record audio": "",
|
|
136
|
+
"Recorded audio:": "Aufgenommenes Audio:",
|
|
137
|
+
"Recording...": "",
|
|
135
138
|
Reference: "Referenz",
|
|
136
139
|
References: "Referenzen",
|
|
137
140
|
Regenerate: "Neu generieren",
|
|
@@ -153,6 +156,7 @@ export const deDict: Record<string, string> = {
|
|
|
153
156
|
"Search the documentation…": "Durchsuchen Sie die Dokumentation…",
|
|
154
157
|
"Search with AI-Kit": "Suche mit AI-Kit",
|
|
155
158
|
"Searching…": "Suche…",
|
|
159
|
+
"Select or type tags…": "Tags auswählen oder eingeben…",
|
|
156
160
|
Send: "Senden",
|
|
157
161
|
"Sending request to backend…": "Anfrage wird an das Backend gesendet…",
|
|
158
162
|
"Sending request to server...": "Anfrage wird an den Server gesendet...",
|
|
@@ -165,13 +169,15 @@ export const deDict: Record<string, string> = {
|
|
|
165
169
|
Sources: "Quellen",
|
|
166
170
|
Spanish: "Spanisch",
|
|
167
171
|
Stop: "Stoppen",
|
|
168
|
-
"Stop recording": "
|
|
172
|
+
"Stop recording": "",
|
|
173
|
+
Subcategories: "Unterkategorien",
|
|
169
174
|
"Suggested change": "Vorgeschlagene Änderung",
|
|
170
175
|
Summarize: "Zusammenfassen",
|
|
171
176
|
"Summarize again": "Erneut zusammenfassen",
|
|
172
177
|
"Summarize on Backend": "Serverseitig zusammenfassen",
|
|
173
178
|
Summarizing: "Zusammenfassung",
|
|
174
179
|
Swedish: "Schwedisch",
|
|
180
|
+
Tags: "Tags",
|
|
175
181
|
Teaser: "Teaser",
|
|
176
182
|
teaser: "Teaser",
|
|
177
183
|
Thai: "Thailändisch",
|
package/src/i18n/en.ts
CHANGED
|
@@ -29,6 +29,7 @@ export const enDict: Record<string, string> = {
|
|
|
29
29
|
Caption: "Caption",
|
|
30
30
|
Casual: "Casual",
|
|
31
31
|
casual: "casual",
|
|
32
|
+
Categories: "Categories",
|
|
32
33
|
"Checking capabilities…": "Checking capabilities…",
|
|
33
34
|
Chinese: "Chinese",
|
|
34
35
|
Clear: "Clear",
|
|
@@ -57,6 +58,7 @@ export const enDict: Record<string, string> = {
|
|
|
57
58
|
"Enter a search query to start.": "Enter a search query to start.",
|
|
58
59
|
Error: "Error",
|
|
59
60
|
Excerpt: "Excerpt",
|
|
61
|
+
Filters: "Filters",
|
|
60
62
|
Formal: "Formal",
|
|
61
63
|
formal: "formal",
|
|
62
64
|
French: "French",
|
|
@@ -131,6 +133,7 @@ export const enDict: Record<string, string> = {
|
|
|
131
133
|
"Receiving response...": "Receiving response...",
|
|
132
134
|
Record: "Record",
|
|
133
135
|
"Record audio": "Record audio",
|
|
136
|
+
"Recorded audio:": "Recorded audio:",
|
|
134
137
|
"Recording...": "Recording...",
|
|
135
138
|
Reference: "Reference",
|
|
136
139
|
References: "References",
|
|
@@ -153,6 +156,7 @@ export const enDict: Record<string, string> = {
|
|
|
153
156
|
"Search the documentation…": "Search the documentation…",
|
|
154
157
|
"Search with AI-Kit": "Search with AI-Kit",
|
|
155
158
|
"Searching…": "Searching…",
|
|
159
|
+
"Select or type tags…": "Select or type tags…",
|
|
156
160
|
Send: "Send",
|
|
157
161
|
"Sending request to backend…": "Sending request to backend…",
|
|
158
162
|
"Sending request to server...": "Sending request to server...",
|
|
@@ -166,12 +170,14 @@ export const enDict: Record<string, string> = {
|
|
|
166
170
|
Spanish: "Spanish",
|
|
167
171
|
Stop: "Stop",
|
|
168
172
|
"Stop recording": "Stop recording",
|
|
173
|
+
Subcategories: "Subcategories",
|
|
169
174
|
"Suggested change": "Suggested change",
|
|
170
175
|
Summarize: "Summarize",
|
|
171
176
|
"Summarize again": "Summarize again",
|
|
172
177
|
"Summarize on Backend": "Summarize on Backend",
|
|
173
178
|
Summarizing: "Summarizing",
|
|
174
179
|
Swedish: "Swedish",
|
|
180
|
+
Tags: "Tags",
|
|
175
181
|
Teaser: "Teaser",
|
|
176
182
|
teaser: "teaser",
|
|
177
183
|
Thai: "Thai",
|