index.js
function keywordsListStrings (gettextFunctions) {
  const methodStrings = [];

  for (const getTextFunction of gettextFunctions) {
    let methodString = getTextFunction.name;

    if (getTextFunction.plural || getTextFunction.context) {
      methodString += ':1';
    }
    if (getTextFunction.plural) {
      methodString += `,${getTextFunction.plural}`;
    }
    if (getTextFunction.context) {
      methodString += `,${getTextFunction.context}c`;
    }

    methodStrings.push(methodString);
  }

  return methodStrings;
}
function keywordsListStrings (gettextFunctions) {
  const methodStrings = [];

  for (const getTextFunction of gettextFunctions) {
    let methodString = getTextFunction.name;

    if (getTextFunction.plural || getTextFunction.context) {
      methodString += ':1';
    }
    if (getTextFunction.plural) {
      methodString += `,${getTextFunction.plural}`;
    }
    if (getTextFunction.context) {
      methodString += `,${getTextFunction.context}c`;
    }

    methodStrings.push(methodString);
  }

  return methodStrings;
}
function keywordsListStrings ( gettextFunctions ) { const methodStrings = [ ] ; for ( const getTextFunction of gettextFunctions ) { let methodString = getTextFunction . name ; if ( getTextFunction . plural || getTextFunction . context ) { methodString += ':1' ; } if ( getTextFunction . plural ) { methodString += ` ${ getTextFunction . plural } ` ; } if ( getTextFunction . context ) { methodString += ` ${ getTextFunction . context } ` ; } methodStrings . push ( methodString ) ; } return methodStrings ; }
Generate string for header from gettext function

@param {object} gettextFunctions

@return {Array}
Generate string for header from gettext function