rubenv / angular-gettext-tools

Tools for extracting/compiling angular-gettext strings.
http://angular-gettext.rocketeer.be/
MIT License
39 stars 129 forks source link

Extract isGetString: add option moduleMethodStringArgumentIndex #214

Open Fridus opened 2 years ago

Fridus commented 2 years ago

Real usage :

Extract for the method gettextCatalog.getStringForLanguage. The text is the second argument

gettextCatalog.getStringForLanguage(
          lang,
          'text'
        )
const gettextExtractor = new Extractor({
  moduleMethodString: "getStringForLanguage",
  moduleMethodStringArgumentIndex: 1
})