Releases: lukasgeiter/gettext-extractor
Releases · lukasgeiter/gettext-extractor
v3.1.0
Features
- New option
transformSource
forparse*
methods, which allows pre-processing of source code
v3.0.0
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 togetPotString
toGettextMessages
has been removed
Use the new methods instead:getMessages
,getContexts
andgetMessagesByContext
Features
- Support for setting PO headers
- New methods for retrieving extracted messages:
getMessages
,getContexts
andgetMessagesByContext
Improvements
- By default the
Content-Type
PO header is set totext/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
Features
- More intelligent extraction of comments from JavaScript code
v2.0.0
Breaking Changes
functionCall
andmethodCall
have been replaced byJsExtractors.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 withsavePotFileAsync
v1.0.2
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
v1.0.0
Inital public release of the Gettext Extractor