Readonly configAnalyzes the pathname for a locale and returns the pathname without it.
The pathname that could contain a locale prefix.
Optional options: LocaleAnalysisOptionsThe options to use when matching the locale.
The matched locale and the pathname without the locale prefix (if any).
Detects the domain locale from the hostname and the detected locale if provided.
Optional hostname: stringThe hostname to detect the domain locale from, this must be lowercased.
Optional detectedLocale: stringThe detected locale to use if the hostname does not match.
The domain locale if found, undefined otherwise.
Pulls the pre-computed locale and inference results from the query object.
the pathname that could contain a locale prefix
the query object
the locale analysis result
Validates that the locales in the query object are valid.
The query object to validate.
true if the locale is valid, false otherwise.
The I18NProvider is used to match locale aware routes, detect the locale from the pathname and hostname and normalize the pathname by removing the locale prefix.