def solid_i18n_patterns(prefix, *args):
    if isinstance(prefix, six.string_types):
        warnings.warn(
            "Calling solid_i18n_patterns() with the `prefix` argument and with "
            "tuples instead of django.conf.urls.url() instances is deprecated and "
            "will no longer work in Django 2.0. Use a list of "
            "django.conf.urls.url() instances instead.",
            PendingDeprecationWarning, stacklevel=2
        )
        pattern_list = patterns(prefix, *args)
    else:
        pattern_list = [prefix] + list(args)

    if not settings.USE_I18N:
        return pattern_list
    return [SolidLocaleRegexURLResolver(pattern_list)]
Modified copy of django i18n_patterns.
dataset/ETHPy150Open st4lk/django-solid-i18n-urls/solid_i18n/urls.py/solid_i18n_patterns