i18n

package
Version: v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2021 License: GPL-2.0, GPL-2.0-or-later Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CurrentLocaleViewArg = "currentLocale" // The key for the current locale render arg value

)

Variables

This section is empty.

Functions

func GetAllLangMessages

func GetAllLangMessages() map[string]*config.Config

func GetDefaultLang

func GetDefaultLang() string

func HasLang

func HasLang(lang string) bool

func I18nFilter

func I18nFilter(c *revel.Controller, fc []revel.Filter)

func Message

func Message(locale, message string, args ...interface{}) string

Perform a message look-up for the given locale and message using the given arguments.

When either an unknown locale or message is detected, a specially formatted string is returned.

func MessageLanguages

func MessageLanguages() []string

Return all currently loaded message languages.

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

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