Documentation
¶
Overview ¶
Package i18n provides locale-aware translation lookups. It has no dependencies on PDF rendering, layout, or domain models.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type I18n ¶
type I18n struct {
// contains filtered or unexported fields
}
I18n handles internationalization and translation lookups.
func NewFromSource ¶
NewFromSource creates a new I18n instance from a parsed JSON source object. The source should match the same i18n JSON structure used by i18n.json.
func (*I18n) FloatSeparator ¶
FloatSeparator returns the decimal separator for the current locale.
func (*I18n) KiloSeparator ¶
KiloSeparator returns the thousands separator for the current locale.
func (*I18n) T ¶
T translates a key to the current locale. If the key is not found, returns the key itself.