is_language_prefix_patterns_used
Return a tuple of two booleans: (
True if i18n_patterns() (LocalePrefixPattern) is used in the URLconf,
True if the default language should be prefixed
)
def is_language_prefix_patterns_used(
urlconf: module or string
) - > tuple
Return a tuple of two booleans: (
True if i18n_patterns() (LocalePrefixPattern) is used in the URLconf,
True if the default language should be prefixed
)
Parameters
| Name | Type | Description |
|---|---|---|
| urlconf | module or string | The URL configuration module or path to inspect for internationalization patterns. |
Returns
| Type | Description |
|---|---|
tuple | A tuple containing two booleans: the first indicates if LocalePrefixPattern is present, and the second indicates if the default language prefixing is enabled. |