translation

package
v0.0.0-...-b8432e4 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DEFAULT_LANGUAGE = language.English

Functions

This section is empty.

Types

type I18NTranslationProvider

type I18NTranslationProvider struct {
	// contains filtered or unexported fields
}

func (*I18NTranslationProvider) TranslateMessage

func (provider *I18NTranslationProvider) TranslateMessage(messageID string, locale string, templateData TemplateData) (string, error)

type TemplateData

type TemplateData map[string]interface{}

type TranslationProvider

type TranslationProvider interface {
	TranslateMessage(messageID string, locale string, templateData TemplateData) (string, error)
}

func CreateI18NTranslationProvider

func CreateI18NTranslationProvider() (TranslationProvider, error)

Jump to

Keyboard shortcuts

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