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

    Interface ToSentenceOptions

    Options accepted by I18n.toSentence.

    interface ToSentenceOptions {
        lastWordConnector: string;
        twoWordsConnector: string;
        wordsConnector: string;
    }
    Index
    lastWordConnector: string

    Joins the last two words of a longer list (e.g. ", and ").

    twoWordsConnector: string

    Joins the words when the list has exactly two items (e.g. " and ").

    wordsConnector: string

    Joins all words except the last two, e.g. the ", " in "a, b, and c".