Documentation ¶
Index ¶
- type ResourceType
- type Translation
- func (t *Translation) TranslateMessage(messageId string, language string, conf map[string]interface{}, ...) string
- func (t *Translation) TranslateMessageNoParam(messageId string, language string) string
- func (t *Translation) TranslateMessageWithParam(messageId string, language string, param map[string]interface{}) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ResourceType ¶
type ResourceType string
const ( ResourceTypeTOML ResourceType = "toml" ResourceTypeJSON ResourceType = "json" )
type Translation ¶
type Translation struct {
// contains filtered or unexported fields
}
func NewTranslation ¶
func NewTranslation(defaultLanguage string, resourceDirection string, resourceType ResourceType) *Translation
func (*Translation) TranslateMessage ¶
func (*Translation) TranslateMessageNoParam ¶
func (t *Translation) TranslateMessageNoParam(messageId string, language string) string
func (*Translation) TranslateMessageWithParam ¶
func (t *Translation) TranslateMessageWithParam(messageId string, language string, param map[string]interface{}) string
Click to show internal directories.
Click to hide internal directories.