// New returns a I18N middleware with the given bundle and optional options.
New returns a I18N middleware with the given bundle and optional options.
// New returns a I18N middleware with the given bundle and optional options .
func New(bundle *i18n.Bundle, opts ...Option) clevergo.MiddlewareFunc {
	m := &middleware{
		bundle:    bundle,
		formField: "lang",
	}
	for _, opt := range opts {
		opt(m)
	}
	return m.handle
}
func New ( bundle * i18n . Bundle , opts ... Option ) clevergo . MiddlewareFunc { m := & middleware { bundle : bundle , formField : " " , } for _ , opt := range opts { opt ( m ) } return m . handle }
New returns a I18N middleware with the given bundle and optional options.
New returns a I18N middleware with the given bundle and optional options .