i18n

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllHandler

func AllHandler(e echo.Context) error

Returns all language keys

func ExportI18n

func ExportI18n(e echo.Context) error

Export the i18n definitions of the platform

func FindHandler

func FindHandler(e echo.Context) error

Search the key of a given key or a given translation

func FormBuilderI18nSearchHandler

func FormBuilderI18nSearchHandler(e echo.Context) error

Returns a list of matching i18n keys for a given form field

func IndexHandler

func IndexHandler(e echo.Context) error

Render app.html

func LangSwitchHandler

func LangSwitchHandler(e echo.Context) error

Switch the language

func MetaHandler

func MetaHandler(e echo.Context) error
Returns a json containing i18n metadata {
		"langListSize",
		"langList",
		"activeLangs",
		"langFallback",
		"fallbackTranslations",
	}

func SetFallbackHandler

func SetFallbackHandler(e echo.Context) error

Set the language fallback @param lang => string

func TranslateHandler

func TranslateHandler(e echo.Context) error

Translate a given set of language keys

func UpdateHandler

func UpdateHandler(e echo.Context) error

Update the i18n definitions

Types

This section is empty.

Jump to

Keyboard shortcuts

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