Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArgumentIndex ¶
func LocalizationIndex ¶
func LocalizationIndex(locs []Localization, lang language.Tag) (idx int)
func VariableScopeIndex ¶
func VariableScopeIndex(variables []VariableScope, name string) (idx int)
Types ¶
type Localization ¶
type Localization struct { Name string Lang language.Tag Scopes []MessageScope Imports []ast.GoImport }
func (*Localization) AddImport ¶
func (loc *Localization) AddImport(imp ast.GoImport)
type MessageScope ¶
type MessageScope struct { Name string Variables []VariableScope Plural ast.Plural String ast.FormatParts Arguments []Argument }
func (*MessageScope) IsSimple ¶
func (m *MessageScope) IsSimple() bool
type VariableScope ¶
Click to show internal directories.
Click to hide internal directories.