feat(al): update select aritlce

This commit is contained in:
zyronon
2023-09-21 12:26:33 +08:00
parent 5c1b5cf70e
commit 0c5d08e15f
6 changed files with 377 additions and 289 deletions

View File

@@ -115,35 +115,35 @@ export interface Sentence {
}
export enum TranslateType {
custom = 0,
network = 1,
none = 2
custom = 'custom',
network = 'network',
none = 'none'
}
export interface Article {
title: string,
titleTranslate: string,
article: string,
customTranslate: string,
networkTranslate: string,
translateSplit: boolean,//翻译是否分割
text: string,
textCustomTranslate: string,
textCustomTranslateIsFormat: boolean,//翻译是否格式化
textNetworkTranslate: string,
newWords: Word[],
articleAllWords: string[],
textAllWords: string[],
sections: Sentence[][],
translateType: TranslateType
useTranslateType: TranslateType
}
export const DefaultArticle: Article = {
title: '',
titleTranslate: '',
article: '',
customTranslate: '',
networkTranslate: '',
translateSplit: false,
text: '',
textCustomTranslate: '',
textNetworkTranslate: '',
textCustomTranslateIsFormat: false,
newWords: [],
articleAllWords: [],
textAllWords: [],
sections: [],
translateType: TranslateType.network
useTranslateType: TranslateType.network
}
export interface Dict {