international

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Languages map[string]string
}

type Gi18nManagers

type Gi18nManagers struct {
	Managers map[string]*gi18n.Manager
	// contains filtered or unexported fields
}

func InitGi18nManagers

func InitGi18nManagers() (*Gi18nManagers, error)

func (*Gi18nManagers) GetInstants

func (g *Gi18nManagers) GetInstants(language string) *gi18n.Manager

func (*Gi18nManagers) Translate

func (g *Gi18nManagers) Translate(ctx context.Context, language string, content string) string

Jump to

Keyboard shortcuts

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