Skip to main content

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

NameTypeDescription
urlconfmodule or stringThe URL configuration module or path to inspect for internationalization patterns.

Returns

TypeDescription
tupleA tuple containing two booleans: the first indicates if LocalePrefixPattern is present, and the second indicates if the default language prefixing is enabled.