Changeset 12 in code for trunk/engines/libretranslate.go
- Timestamp:
- Sep 30, 2022, 8:16:37 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/engines/libretranslate.go
r10 r12 11 11 // [LibreTranslate](https://github.com/LibreTranslate/LibreTranslate) instance. 12 12 type LibreTranslate struct { 13 // InstanceURL is the URL to a LibreTranslate instance, for instance13 // InstanceURL is the URL to a LibreTranslate instance, for example 14 14 // "https://libretranslate.com". 15 15 InstanceURL string … … 131 131 } 132 132 133 func (e *LibreTranslate) Translate(text string, from Language, to Language) (TranslationResult, error) {133 func (e *LibreTranslate) Translate(text string, from, to Language) (TranslationResult, error) { 134 134 formData := map[string]string{ 135 135 "q": text,
Note:
See TracChangeset
for help on using the changeset viewer.