- Added Server Configuration settings page (backend + frontend) - Added .env config download/import API - Runtime config updates via UI - Support for all 3 themes (default, air, berry) - i18n support (zh/en)
17 lines
416 B
Go
17 lines
416 B
Go
package deepl
|
|
|
|
type Request struct {
|
|
Text []string `json:"text"`
|
|
TargetLang string `json:"target_lang"`
|
|
}
|
|
|
|
type Translation struct {
|
|
DetectedSourceLanguage string `json:"detected_source_language,omitempty"`
|
|
Text string `json:"text,omitempty"`
|
|
}
|
|
|
|
type Response struct {
|
|
Translations []Translation `json:"translations,omitempty"`
|
|
Message string `json:"message,omitempty"`
|
|
}
|