77 lines
1.7 KiB
TypeScript
77 lines
1.7 KiB
TypeScript
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
|
|
// This file is automatically generated. DO NOT EDIT
|
|
|
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
// @ts-ignore: Unused imports
|
|
import {Create as $Create} from "@wailsio/runtime";
|
|
|
|
/**
|
|
* LanguageInfo 语言信息结构体
|
|
*/
|
|
export class LanguageInfo {
|
|
/**
|
|
* 语言代码
|
|
*/
|
|
"Code": string;
|
|
|
|
/**
|
|
* 语言名称
|
|
*/
|
|
"Name": string;
|
|
|
|
/** Creates a new LanguageInfo instance. */
|
|
constructor($$source: Partial<LanguageInfo> = {}) {
|
|
if (!("Code" in $$source)) {
|
|
this["Code"] = "";
|
|
}
|
|
if (!("Name" in $$source)) {
|
|
this["Name"] = "";
|
|
}
|
|
|
|
Object.assign(this, $$source);
|
|
}
|
|
|
|
/**
|
|
* Creates a new LanguageInfo instance from a string or object.
|
|
*/
|
|
static createFrom($$source: any = {}): LanguageInfo {
|
|
let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source;
|
|
return new LanguageInfo($$parsedSource as Partial<LanguageInfo>);
|
|
}
|
|
}
|
|
|
|
/**
|
|
* TranslatorType 翻译器类型
|
|
*/
|
|
export enum TranslatorType {
|
|
/**
|
|
* The Go zero value for the underlying type of the enum.
|
|
*/
|
|
$zero = "",
|
|
|
|
/**
|
|
* GoogleTranslatorType 谷歌翻译器
|
|
*/
|
|
GoogleTranslatorType = "google",
|
|
|
|
/**
|
|
* BingTranslatorType 必应翻译器
|
|
*/
|
|
BingTranslatorType = "bing",
|
|
|
|
/**
|
|
* YoudaoTranslatorType 有道翻译器
|
|
*/
|
|
YoudaoTranslatorType = "youdao",
|
|
|
|
/**
|
|
* DeeplTranslatorType DeepL翻译器
|
|
*/
|
|
DeeplTranslatorType = "deepl",
|
|
|
|
/**
|
|
* TartuNLPTranslatorType TartuNLP翻译器
|
|
*/
|
|
TartuNLPTranslatorType = "tartunlp",
|
|
};
|