Options
All
  • Public
  • Public/Protected
  • All
Menu

Module next-server/lib/i18n/normalize-locale-path

Index

Functions

normalizeLocalePath

  • normalizeLocalePath(pathname: string, locales?: string[]): { detectedLocale?: string; pathname: string }
  • Parameters

    • pathname: string
    • Optional locales: string[]

    Returns { detectedLocale?: string; pathname: string }

    • Optional detectedLocale?: string
    • pathname: string

Generated using TypeDoc