localizegen

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCallX

func NewCallX() callx.CallX

Types

type Localization

type Localization struct {
	DocumentID string
	SheetID    string
	Platform   string
	Target     string
	Locale     string
	Filename   string
}

type Repository

type Repository interface {
	GetLocalize(documentID string, sheetID string) callx.Response
	ReadCSV(text string) csvx.CsvList
}

func NewRepository

func NewRepository(callX callx.CallX, csvX csvx.CsvX, fileX filex.FileX) Repository

type UseCase

type UseCase interface {
	Process(param Localization) chan core.Result
	GetAvailableLanguages(csv csvx.CsvList) core.Languages
	GenerateResource(csv csvx.CsvList, param Localization) chan core.Result
}

func New

func New() UseCase

func NewUseCase

func NewUseCase(
	repo Repository,
	androidUc android.UseCase,
	iosUc ios.UseCase,
	flutterUc flutter.UseCase,
) UseCase

Jump to

Keyboard shortcuts

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