i18n

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// PortugueseBR indicates the abbreviation of the language of the country Brazil
	PortugueseBR string = "pt_BR"
	// EnglishUS indicates the language abbreviation of the country United States of America
	EnglishUS string = "en_US"
	// SpainES indicates the abbreviation of the language of the country Spain
	SpainES string = "es_ES"
)

Variables

This section is empty.

Functions

func Setup

func Setup(ctx *gin.Context, l *lingo.L)

Setup add the language to use

func Value

func Value(value string, args ...string) string

Value traverses the translations map and finds translation for given key.

Types

This section is empty.

Jump to

Keyboard shortcuts

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