feat(typearticle): add useNetworkTranslate hook

This commit is contained in:
zyronon
2023-09-11 18:52:21 +08:00
parent a66b32578d
commit d82af4efad
3 changed files with 143 additions and 34 deletions

View File

@@ -114,8 +114,9 @@ export interface Sentence {
export interface Article {
article: string,
translate: string,
isTranslate: boolean,
customTranslate: string,
networkTranslate: string,
isTranslated: boolean,
newWords: Word[],
articleAllWords: string[],
sections: Sentence[][],
@@ -195,4 +196,8 @@ export const ShortKeyMap = {
Ignore: 'Tab',
Remove: '`',
Collect: 'Enter',
}
export enum TranslateEngine {
Baidu = 0,
}