@inlang/paraglide-js
Version:
[](https://inlang.com)
8 lines • 371 B
TypeScript
/**
* Extracts the locale from a given URL using native URLPattern.
*
* @param {URL|string} url - The full URL from which to extract the locale.
* @returns {Locale|undefined} The extracted locale, or undefined if no locale is found.
*/
export function extractLocaleFromUrl(url: URL | string): Locale | undefined;
//# sourceMappingURL=extract-locale-from-url.d.ts.map