translation

package
v0.0.0-...-31c068b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 11, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TranslationService

type TranslationService struct {
	// contains filtered or unexported fields
}

func NewTranslationService

func NewTranslationService(deepl *models.DeepLAPI) *TranslationService

func (*TranslationService) Translate

func (s *TranslationService) Translate(ctx context.Context, texts []string, targetLang string) ([]string, error)

func (*TranslationService) TranslateCourse

func (s *TranslationService) TranslateCourse(ctx context.Context, course *models.Course, targetLang string) (*models.Course, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL