Skip to content

Releases: lukasgeiter/gettext-extractor

v3.1.0

10 Nov 19:35
Compare
Choose a tag to compare

Features

  • New option transformSource for parse* methods, which allows pre-processing of source code

v3.0.0

17 Jul 09:46
Compare
Choose a tag to compare

Breaking Changes

  • The POT output format has changed a bit
    There have been a few improvements to the output - see Improvements below.
  • toPotString has been renamed to getPotString
  • toGettextMessages has been removed
    Use the new methods instead: getMessages, getContexts and getMessagesByContext

Features

  • Support for setting PO headers
  • New methods for retrieving extracted messages: getMessages, getContexts and getMessagesByContext

Improvements

  • By default the Content-Type PO header is set to text/plain; charset=UTF-8
  • Plurals have a msgstr[1] "" in the POT output #5
  • File references are sorted alphabetically in the POT output

Bugfixes

  • Prevent &, < and > from being escaped as HTML entities
  • Preserve messages with empty string as text

v2.1.0

05 Jun 15:37
Compare
Choose a tag to compare

Features

  • More intelligent extraction of comments from JavaScript code

v2.0.0

17 May 18:35
Compare
Choose a tag to compare

Breaking Changes

  • functionCall and methodCall have been replaced by JsExtractors.callExpression
  • Node.js version 6 or higher is now required
  • Passing null for optional arguments will throw an error

Features

  • HTML support
  • More flexible extraction of call expression with JsExtractors.callExpression
  • Support for glob options in parseFilesGlob
  • Parse options that allow setting the starting line number and more
  • Save to .pot file asynchronously with savePotFileAsync

v1.0.2

07 Apr 21:24
Compare
Choose a tag to compare

Bugfixes

  • Let TypeScript parser infer script kind from filename
    This resolves issues with TypeScript casts (like <any>) being treated
    as JSX elements which can result in missing messages.

v1.0.1

06 Apr 17:12
Compare
Choose a tag to compare

Bugfixes

  • Fix character encoding issue #1

v1.0.0

17 Mar 20:49
Compare
Choose a tag to compare

Inital public release of the Gettext Extractor