i18n

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Translator

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

func New

func New(path string, isDevelopment bool) *Translator

New creates a new instance of a translator from the given file path.

func (*Translator) T

func (t *Translator) T(r *http.Request, id string, data map[string]interface{}, pluralCount ...int) string

T translates the string with the given name.

Jump to

Keyboard shortcuts

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