generator

package
v0.0.0-...-b26f218 Latest Latest
Warning

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

Go to latest
Published: May 14, 2022 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Document

type Document struct {
	TextFirst  string
	TextSecond string
}

type Format

type Format int8
const (
	AppleStrings Format = iota
	AppleXliff   Format = iota
	AndroidStrings
	WebJSON
)

type Generator

type Generator interface {
	SetTranslations(t []*domain.Translation) Generator
	SetFormat(format Format) Generator             // web-json, ios-strings, android-xml
	SetPluralFormat(format PluralFormat) Generator // json, i18n
	Generate() (Document, error)
}

type PluralFormat

type PluralFormat int8
const (
	PluralFormatDefault PluralFormat = iota // using for android, apple
	PluralFormat18N                         // using for web
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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