Changeset 12 in code for trunk/engines/libretranslate.go


Ignore:
Timestamp:
Sep 30, 2022, 8:16:37 PM (3 years ago)
Author:
fattalion
Message:

Do some minor cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/engines/libretranslate.go

    r10 r12  
    1111// [LibreTranslate](https://github.com/LibreTranslate/LibreTranslate) instance.
    1212type LibreTranslate struct {
    13         // InstanceURL is the URL to a LibreTranslate instance, for instance
     13        // InstanceURL is the URL to a LibreTranslate instance, for example
    1414        // "https://libretranslate.com".
    1515        InstanceURL string
     
    131131}
    132132
    133 func (e *LibreTranslate) Translate(text string, from Language, to Language) (TranslationResult, error) {
     133func (e *LibreTranslate) Translate(text string, from, to Language) (TranslationResult, error) {
    134134        formData := map[string]string{
    135135                "q":      text,
Note: See TracChangeset for help on using the changeset viewer.