code: func NewTranslator(b *bundle.Bundle, cfg config.Provider, logger *loggers.Logger) Translator {
  	t := Translator{cfg: cfg, logger: logger, translateFuncs: make(map[string]bundle.TranslateFunc)}
  	t.initFuncs(b)
  	return t
  }
docs: // NewTranslator creates a new Translator for the given language bundle and configuration.