-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
56 lines (51 loc) · 1.19 KB
/
types.ts
File metadata and controls
56 lines (51 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
export enum AppMode {
CHAT = 'CHAT',
OCR = 'OCR'
}
export interface ChatMessage {
id: string;
role: 'user' | 'model';
content: string;
isError?: boolean;
timestamp: number;
sources?: Array<{
title?: string;
uri: string;
}>;
}
export interface BilingualConfig {
enabled: boolean;
font: string;
layout: 'original_first' | 'translation_first'; // "Ngôn ngữ gốc" vs "Ngôn ngữ đích" order
targetColor: string;
targetStyle: {
bold: boolean;
italic: boolean;
underline: boolean;
};
}
export interface DocumentState {
file: File | null;
previewUrl: string | null;
isProcessing: boolean;
result: string | null;
targetLanguage: string;
preserveStructure: boolean;
bilingualConfig: BilingualConfig;
error: string | null;
}
export enum TargetLanguage {
ORIGINAL = 'Ngôn ngữ gốc',
VIETNAMESE = 'Tiếng Việt',
ENGLISH = 'Tiếng Anh',
JAPANESE = 'Tiếng Nhật',
KOREAN = 'Tiếng Hàn',
CHINESE = 'Tiếng Trung',
FRENCH = 'Tiếng Pháp',
SPANISH = 'Tiếng Tây Ban Nha',
GERMAN = 'Tiếng Đức',
LAO = 'Tiếng Lào',
CAMBODIAN = 'Tiếng Campuchia',
FILIPINO = 'Tiếng Philippines',
THAI = 'Tiếng Thái'
}