i18n

package
v1.0.0-beta Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Localize

func Localize(lang string, messageId string, data map[string]interface{}, plural interface{}) (string, error)

Localize translates the message based on the language of the chat.

func TranslateConnectorAvailableMessage

func TranslateConnectorAvailableMessage(lang string, connectorId int) ([]string, error)

func TranslateConnectorChargingMessage

func TranslateConnectorChargingMessage(lang string, connectorId int) ([]string, error)

func TranslateConnectorFaultedMessage

func TranslateConnectorFaultedMessage(lang string, connectorId int) ([]string, error)

func TranslateConnectorFinishingMessage

func TranslateConnectorFinishingMessage(lang string, connectorId int) ([]string, error)

func TranslateWelcomeMessage

func TranslateWelcomeMessage(lang string) ([]string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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