astro-i18n-aut
Version:
The i18n integration for Astro 🧑🚀
13 lines • 318 B
TypeScript
/**
* @returns locale prefix or an empty string if defaultLocale
* @example
* ```ts
* getLocaleUrlPrefix("/es/about") // "/es"
* ```
* @example
* ```ts
* getLocale("/about") // ""
* ```
*/
export declare function getLocaleUrlPrefix(url: URL | string): string;
//# sourceMappingURL=getLocaleUrlPrefix.d.ts.map