Versions in this module Expand all Collapse all v2 v2.0.1 Apr 3, 2023 v2.0.0 Apr 3, 2023 Changes in this version + const DefaultName + func GetContent(ctx context.Context, key string) string + func LanguageFromCtx(ctx context.Context) string + func SetDelimiters(left, right string) + func SetLanguage(language string) + func SetPath(path string) error + func T(ctx context.Context, content string) string + func Tf(ctx context.Context, format string, values ...interface{}) string + func Translate(ctx context.Context, content string) string + func TranslateFormat(ctx context.Context, format string, values ...interface{}) string + func WithLanguage(ctx context.Context, language string) context.Context + type Manager struct + func Instance(name ...string) *Manager + func New(options ...Options) *Manager + func (m *Manager) GetContent(ctx context.Context, key string) string + func (m *Manager) SetDelimiters(left, right string) + func (m *Manager) SetLanguage(language string) + func (m *Manager) SetPath(path string) error + func (m *Manager) T(ctx context.Context, content string) string + func (m *Manager) Tf(ctx context.Context, format string, values ...interface{}) string + func (m *Manager) Translate(ctx context.Context, content string) string + func (m *Manager) TranslateFormat(ctx context.Context, format string, values ...interface{}) string + type Options struct + Delimiters []string + Language string + Path string + func DefaultOptions() Options