Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateRandomString ¶
func RenderTemplate ¶
Types ¶
type TranslationValues ¶ added in v1.0.0
type TranslationValues map[string]interface{}
TranslationValues is a map, with the keys beign the requested translations, and the values being a struct with the values to use in the template of said translation
type Translations ¶ added in v1.0.0
Translations map the requested keys to their final rendered values
func ParseTranslations ¶ added in v1.0.0
func ParseTranslations(rawKey string, tv TranslationValues) (translations Translations, err error)
Parse translations loads the translation templates and renders them with the provided values
Click to show internal directories.
Click to hide internal directories.