@sanity/routes
    Preparing search index...

    Interface LocaleOptions

    Options for locale-aware URL resolution.

    When passed to resolver methods, the locale value is available as $locale in GROQ pathExpression evaluation.

    const url = await resolver.resolveUrlById('product-123', { locale: 'fr' })
    
    interface LocaleOptions {
        locale?: string;
    }
    Index

    Properties

    Properties

    locale?: string

    Locale to use when evaluating pathExpression (available as $locale in GROQ).