translation

package
v0.3.4-alpha Latest Latest
Warning

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

Go to latest
Published: May 2, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

func New

func (*Service) TranslateMovie

func (s *Service) TranslateMovie(ctx context.Context, movie *models.Movie, settingsHash string) (*models.MovieTranslation, string, error)

type TranslationError

type TranslationError struct {
	Kind       TranslationErrorKind
	StatusCode int
	Message    string
	Cause      error
}

func (*TranslationError) Error

func (e *TranslationError) Error() string

func (*TranslationError) Unwrap

func (e *TranslationError) Unwrap() error

type TranslationErrorKind

type TranslationErrorKind string
const (
	TranslationErrorParse         TranslationErrorKind = "parse_error"
	TranslationErrorCountMismatch TranslationErrorKind = "count_mismatch"
	TranslationErrorHTTPStatus    TranslationErrorKind = "http_status"
	TranslationErrorProvider      TranslationErrorKind = "provider_error"
)

Jump to

Keyboard shortcuts

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