Documentation ¶
Index ¶
- Constants
- func NewCreateTranslations(options common.Options) createTranslations
- func NewExtractStrings(options common.Options) extractStrings
- func NewRewritePackage(options common.Options) rewritePackage
- func NewVerifyStrings(options common.Options) verifyStrings
- type Checkup
- type CommandInterface
- type Fixup
- type GoogleTranslateData
- type GoogleTranslateTranslation
- type GoogleTranslateTranslations
- type MergeStrings
- func (ms *MergeStrings) Len() int
- func (ms *MergeStrings) Less(i, j int) bool
- func (ms *MergeStrings) Options() common.Options
- func (ms *MergeStrings) Printf(msg string, a ...interface{}) (int, error)
- func (ms *MergeStrings) Println(a ...interface{}) (int, error)
- func (ms *MergeStrings) Run() error
- func (ms *MergeStrings) Swap(i, j int)
- type ShowMissingStrings
Constants ¶
View Source
const (
INIT_CODE_SNIPPET = `` /* 250-byte string literal not displayed */
)
Variables ¶
This section is empty.
Functions ¶
func NewCreateTranslations ¶
func NewExtractStrings ¶
func NewRewritePackage ¶
func NewVerifyStrings ¶
Types ¶
type Checkup ¶
type Checkup struct { I18nStringInfos []common.I18nStringInfo // contains filtered or unexported fields }
func NewCheckup ¶
type CommandInterface ¶
type CommandInterface interface { common.PrinterInterface Options() common.Options Run() error }
type Fixup ¶
type Fixup struct { I18nStringInfos []common.I18nStringInfo English []common.I18nStringInfo Source map[string]int Locales map[string]map[string]string // contains filtered or unexported fields }
type GoogleTranslateData ¶
type GoogleTranslateData struct {
Data GoogleTranslateTranslations `json:"data"`
}
type GoogleTranslateTranslations ¶
type GoogleTranslateTranslations struct {
Translations []GoogleTranslateTranslation `json:"translations"`
}
type MergeStrings ¶
type MergeStrings struct { I18nStringInfos []common.I18nStringInfo Recurse bool SourceLanguage string Directory string // contains filtered or unexported fields }
func NewMergeStrings ¶
func NewMergeStrings(options common.Options) MergeStrings
func (*MergeStrings) Len ¶
func (ms *MergeStrings) Len() int
func (*MergeStrings) Less ¶
func (ms *MergeStrings) Less(i, j int) bool
func (*MergeStrings) Options ¶
func (ms *MergeStrings) Options() common.Options
func (*MergeStrings) Printf ¶
func (ms *MergeStrings) Printf(msg string, a ...interface{}) (int, error)
func (*MergeStrings) Println ¶
func (ms *MergeStrings) Println(a ...interface{}) (int, error)
func (*MergeStrings) Run ¶
func (ms *MergeStrings) Run() error
func (*MergeStrings) Swap ¶
func (ms *MergeStrings) Swap(i, j int)
type ShowMissingStrings ¶
type ShowMissingStrings struct { I18nStringInfos []common.I18nStringInfo TranslatedStrings []string I18nStringsFilename string Directory string // contains filtered or unexported fields }
func NewShowMissingStrings ¶
func NewShowMissingStrings(options common.Options) ShowMissingStrings
func (*ShowMissingStrings) Options ¶
func (sms *ShowMissingStrings) Options() common.Options
func (*ShowMissingStrings) Printf ¶
func (sms *ShowMissingStrings) Printf(msg string, a ...interface{}) (int, error)
func (*ShowMissingStrings) Println ¶
func (sms *ShowMissingStrings) Println(a ...interface{}) (int, error)
func (*ShowMissingStrings) Run ¶
func (sms *ShowMissingStrings) Run() error
Click to show internal directories.
Click to hide internal directories.