def add_url_rule(self, rule, endpoint=None, view_func=None,
                     provide_automatic_options=None, register_with_babel=False,
                     **options):
        """
        Like :meth:`~flask.Flask.add_url_rule`, but if ``register_with_babel`` is True,
        then we also allow the Babel Bundle an opportunity to register a language code
        prefixed URL.
        """
        if self.unchained.babel_bundle and register_with_babel:
            self.unchained.babel_bundle.add_url_rule(
                self, rule, endpoint=endpoint, view_func=view_func,
                provide_automatic_options=provide_automatic_options, **options)
        return super().add_url_rule(rule, endpoint, view_func,
                                    provide_automatic_options, **options)
Like :meth:`~flask.Flask.add_url_rule`, but if ``register_with_babel`` is True,
        then we also allow the Babel Bundle an opportunity to register a language code
        prefixed URL.