trans

package
v1.6.8 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: GPL-2.0 Imports: 1 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func S

func S(v string, args ...any) func() string

func T

func T(v string, args ...any) string

Types

type EchoBackend added in v1.6.8

type EchoBackend struct{}

func (*EchoBackend) Translate added in v1.6.8

func (b *EchoBackend) Translate(v string, args ...any) string

type TranslationBackend added in v1.6.8

type TranslationBackend interface {
	Translate(v string, args ...any) string
}
var DefaultBackend TranslationBackend = &EchoBackend{}

Jump to

Keyboard shortcuts

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