locales

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: BlueOak-1.0.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Ar = map[string]*intl.Translation{}/* 547 elements not displayed */
View Source
var DeDE = map[string]*intl.Translation{}/* 242 elements not displayed */
View Source
var EnUS = map[string]*intl.Translation{}/* 669 elements not displayed */
View Source
var (
	Locales map[string]map[string]*intl.Translation
)
View Source
var PlPL = map[string]*intl.Translation{}/* 536 elements not displayed */
View Source
var PtBr = map[string]*intl.Translation{}/* 192 elements not displayed */
View Source
var ZhCN = map[string]*intl.Translation{}/* 258 elements not displayed */

Functions

func RegisterTranslations added in v1.0.0

func RegisterTranslations()

RegisterTranslations registers translations with the init package for translator worksheet preparation.

func Tokens

func Tokens(tmpl []byte) [][][]byte

Tokens returns a slice of tuples (token, key), where token is just key with triple square brackets, and could also be constructed simply as "[[[" + key + "]]]"". The key is the lookup key for the Locales map. The token is what must be replaced in the raw template.

Types

This section is empty.

Jump to

Keyboard shortcuts

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