The result of matching a locale aware route.

interface LocaleAnalysisResult {
    detectedLocale?: string;
    inferredFromDefault: boolean;
    pathname: string;
}

Properties

detectedLocale?: string

The detected locale. If no locale was detected, this will be undefined.

inferredFromDefault: boolean

True if the locale was inferred from the default locale.

pathname: string

The pathname without the locale prefix (if any).