func translateLocal(localizer *i18n.Localizer, config *i18n.LocalizeConfig) string {
	config.DefaultMessage = &i18n.Message{
		ID:    config.MessageID,
		One:   config.MessageID,
		Other: config.MessageID,
	}

	msg, _ := localizer.Localize(config)
	return msg
}
// Translates to preferred localizer.
//
// No error will be returned and if no translation been found,
// same `MessageID` in `config` variable returns.
//
// You can get your desired `localizer` from `returnLocalizer` function.
Translates to preferred localizer.

No error will be returned and if no translation been found,
same `MessageID` in `config` variable returns.

You can get your desired `localizer` from `returnLocalizer` function.
// Translates to preferred localizer . // // No error will be returned and if no translation been found // same ` MessageID ` in ` config ` variable returns . // // You can get your desired ` localizer ` from ` returnLocalizer ` function .
func translateLocal(localizer *i18n.Localizer, config *i18n.LocalizeConfig) string {
	config.DefaultMessage = &i18n.Message{
		ID:    config.MessageID,
		One:   config.MessageID,
		Other: config.MessageID,
	}
	msg, _ := localizer.Localize(config)
	return msg
}
func translateLocal ( localizer * i18n . Localizer , config * i18n . LocalizeConfig ) string { config . DefaultMessage = & i18n . Message { ID : config . MessageID , One : config . MessageID , Other : config . MessageID , } msg , _ := localizer . Localize ( config ) return msg }
Translates to preferred localizer.
Translates to preferred localizer .