Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type I18n ¶
I18n ...
func (*I18n) ChangeLanguage ¶
ChangeLanguage ... @summary if lang "" than take accept @summary lang = request.languageCode @sumarry accept = Header("Accept-Language") @params lang string @params accept string
func (*I18n) GetTranslation ¶
GetTranslation ge translation from i18n json @params messageKey string @params messageData map[string]interface{} @return string
func (*I18n) GetTranslationWithData ¶
func (i *I18n) GetTranslationWithData(messageKey string, messageData map[string]interface{}, lang string) string
GetTranslationWithData ge translation from i18n json @params messageKey string @params messageData map[string]interface{} @params lang string = "" for default @return string
Click to show internal directories.
Click to hide internal directories.