Initial commit
This commit is contained in:
commit
78f8d225ee
21173 changed files with 2907774 additions and 0 deletions
14
node_modules/next/dist/shared/lib/i18n/normalize-locale-path.d.ts
generated
vendored
Normal file
14
node_modules/next/dist/shared/lib/i18n/normalize-locale-path.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
export interface PathLocale {
|
||||
detectedLocale?: string;
|
||||
pathname: string;
|
||||
}
|
||||
/**
|
||||
* For a pathname that may include a locale from a list of locales, it
|
||||
* removes the locale from the pathname returning it alongside with the
|
||||
* detected locale.
|
||||
*
|
||||
* @param pathname A pathname that may include a locale.
|
||||
* @param locales A list of locales.
|
||||
* @returns The detected locale and pathname without locale
|
||||
*/
|
||||
export declare function normalizeLocalePath(pathname: string, locales?: readonly string[]): PathLocale;
|
||||
Loading…
Add table
Add a link
Reference in a new issue