gettext-extractor

A flexible and powerful Gettext message extractor with support for JavaScript, TypeScript, JSX and HTML.

MIT License

Downloads
401.8K
Stars
96
Committers
10

Bot releases are visible (Hide)

gettext-extractor - v3.8.0 Latest Release

Published by lukasgeiter over 1 year ago

Features

  • New JsExtractors.htmlTemplate extractor #64

Bugfixes

  • Fix comment extraction around variable assignment #65
gettext-extractor - v3.7.2

Published by lukasgeiter over 1 year ago

Bugfixes

  • Exclude directories from glob matching #63
gettext-extractor - v3.7.1

Published by lukasgeiter over 1 year ago

Improvements

  • Support for TypeScript 5 (dropping support for versions 2 & 3)
gettext-extractor - v3.7.0

Published by lukasgeiter over 1 year ago

Features

  • New HtmlExtractors.embeddedAttributeJs extractor #60
gettext-extractor - v3.6.2

Published by lukasgeiter over 1 year ago

Bugfixes

  • Fix line numbers for embeddedJsExtractor when lineNumberStart is passed to HtmlParser #59
gettext-extractor - v3.6.0

Published by lukasgeiter almost 2 years ago

Improvements

  • Content options for HTML attributes #57
gettext-extractor - v3.5.4

Published by lukasgeiter over 2 years ago

Bugfixes

  • Add support for empty HTML attribute selectors [attribute=""] #51
gettext-extractor - v3.5.3

Published by lukasgeiter about 4 years ago

Improvements

  • Updated dependencies
gettext-extractor - v3.5.2

Published by lukasgeiter about 5 years ago

Bugfixes

  • Fix comment extraction issue within object literals #34
gettext-extractor - v3.5.1

Published by lukasgeiter about 5 years ago

Bugfixes

  • Lock pofile at version 1.0.x to avoid type errors #32
gettext-extractor - v3.5.0

Published by lukasgeiter over 5 years ago

Improvements

gettext-extractor - v3.4.3

Published by lukasgeiter over 5 years ago

Bugfixes

  • Include empty comments if they are matched by the regex option #23
gettext-extractor - v3.4.2

Published by lukasgeiter almost 6 years ago

Bugfixes

  • Normalize newlines in extracted JS string literals
  • Improve white space trimming when combined with preserveIndentation: true
gettext-extractor - v3.4.1

Published by lukasgeiter almost 6 years ago

Bugfixes

  • Fix use of ts.createStringLiteral with TypeScript 2.8 or lower
gettext-extractor - v3.4.0

Published by lukasgeiter about 6 years ago

Improvements

  • Support for concatenated strings in JavaScript arguments
    Note that only concatenations of string literals are supported, expressions containing variables are ignored.
  • Updated dependencies
gettext-extractor - v3.3.2

Published by lukasgeiter over 6 years ago

Improvements

  • Moved runtime @types from devDependencies to dependencies
gettext-extractor - v3.3.1

Published by lukasgeiter over 6 years ago

Improvements

  • Updated dependencies
gettext-extractor - v3.3.0

Published by lukasgeiter over 6 years ago

Improvements

  • Support for template literal strings in JavaScript and options to customize trimming and more
    Template strings containing placeholders are not supported, since those wouldn't be available during runtime and therefore couldn't be used for translation anyway
gettext-extractor - v3.2.1

Published by lukasgeiter almost 7 years ago

Bugfixes

  • Traverse contents of <template> tag
gettext-extractor - v3.2.0

Published by lukasgeiter almost 7 years ago

Improvements

  • Custom PO headers now come after Content-Type in the generated .pot file