trans

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2025 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 SprintBackend added in v1.7.0

type SprintBackend struct{}

func (*SprintBackend) Translate added in v1.7.0

func (b *SprintBackend) Translate(v string) string

func (*SprintBackend) Translatef added in v1.7.0

func (b *SprintBackend) Translatef(v string, args ...any) string

type TranslationBackend added in v1.6.8

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

Jump to

Keyboard shortcuts

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