func returnLocalizer(language string) (*i18n.Localizer, error) {
	localizer, ok := translator.localizers[language]
	if ok {
		return localizer, nil
	}

	return nil, errLocalizerNotFound
}
// Returns preferred localizer based on language code you passed.
//
// If there is no localizer with that language, `localizer not found`
// error returns.
//
// You can get your language string code with using "golang.org/x/text/language"
// library like: language.English.String()
Returns preferred localizer based on language code you passed.

If there is no localizer with that language, `localizer not found`
error returns.

You can get your language string code with using "golang.org/x/text/language"
library like: language.English.String()
// Returns preferred localizer based on language code you passed . // // If there is no localizer with that language ` localizer not found ` // error returns . // // You can get your language string code with using " golang . org / x / text / language " // library like : language . English . String ()
func returnLocalizer(language string) (*i18n.Localizer, error) {
	localizer, ok := translator.localizers[language]
	if ok {
		return localizer, nil
	}
	return nil, errLocalizerNotFound
}
func returnLocalizer ( language string ) ( * i18n . Localizer , error ) { localizer , ok := translator . localizers [ language ] if ok { return localizer , nil } return nil , errLocalizerNotFound }
Returns preferred localizer based on language code you passed.
Returns preferred localizer based on language code you passed .