Sanity Library Reference Docs
    Preparing search index...

    Type Alias UseTranslationResponse<Ns, KPrefix>

    Return value from the useTranslate hook

    type UseTranslationResponse<Ns extends Namespace, KPrefix> = {
        t: TFunction<Ns, KPrefix>;
    }

    Type Parameters

    • Ns extends Namespace
    • KPrefix
    Index

    Properties

    t

    Properties

    t: TFunction<Ns, KPrefix>

    The translate function for the given namespace(s)