i18n

package
v0.0.0-...-157c77b Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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 (t *Translation) TranslateMessage(messageId string, language string, conf map[string]interface{}, pluralCount int) string

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

Jump to

Keyboard shortcuts

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