i18n-js v5.0.0-alpha.1
    Preparing search index...

    Interface TranslateOptions

    Options accepted by I18n.translate.

    interface TranslateOptions {
        count?: number;
        defaults?: Dict[];
        defaultValue?: any;
        missingBehavior?: string;
        scope?: Scope;
        [key: string]: any;
    }

    Indexable

    • [key: string]: any

      Any other key is used as an interpolation value.

    Index
    count?: number

    The count used to select the plural form.

    defaults?: Dict[]

    An ordered list of fallbacks tried before giving up.

    defaultValue?: any

    Value returned when the translation is missing.

    missingBehavior?: string

    Overrides the instance's MissingBehavior for this call.

    scope?: Scope

    A scope prepended to the translation key.