Clov Packages
    Preparing search index...

    Interface DefineLocaleNegotiatorOptions<TLocale>

    Configuration for defineLocaleNegotiator.

    interface DefineLocaleNegotiatorOptions<TLocale extends string> {
        fallback: TLocale;
        supported: readonly TLocale[];
    }

    Type Parameters

    • TLocale extends string

      Locales the application serves.

    Index
    fallback: TLocale

    Locale returned when the client accepts none of the supported ones.

    supported: readonly TLocale[]

    Lowercase tags matching your catalog keys ('en', 'pt-br'). Order is irrelevant.