• Extract all i18n string (and comments) from a file.

    This method yields an object with the relevant details, namely:

    // The line number of the string in the original file. linePos: number, // The starting position of the string in the original file. startOffset: number, // The ending position of the string in the original file. endOffset: number, // The type of string, such as "", "$", or "ngettext". type: string, // The strings found (will be one for singular, two for plural) msgids: Array, // The comments associated with the string. comments: Array,

    Parameters

    • textString: string

    Returns Generator<ExtractedString, void, void>

Generated using TypeDoc