UNPKG

@inlang/paraglide-js

Version:

[![Inlang-ecosystem compatibility badge](https://cdn.jsdelivr.net/gh/opral/monorepo@main/inlang/assets/md-badges/inlang.svg)](https://inlang.com)

8 lines 371 B
/** * 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