Skip to content

Latest commit

 

History

History
183 lines (115 loc) · 9.89 KB

File metadata and controls

183 lines (115 loc) · 9.89 KB

Changelog

v10.1.1 (2025-11-17)

  • Fix service parser incorrectly extracting strings from method calls on non-TranslateService types (#116)
  • Fix service parser not detecting keys when TranslateService is provided via inject() inside the constructor (#113)
  • Replace tsconfig and JSON5 packages with TypeScript's built-in configuration utilities (#115)
  • Replace colorette with Node's built-in util.styleText (#112)

v10.1.0 (2025-09-09)

  • Add new --trailing-newline option to control whether a trailing newline is added to the output (#104)
  • Exclude empty strings from extracted keys (#105)

v10.0.1 (2025-07-29)

  • Avoid redundant property lookups on parent class in service parser (#99)
  • Locate package.json in new location for the --cache-file option (#96)
  • Fix version resolution for the --version option (#97)
  • Fix parser not detecting keys when the translate pipe is used within logical expressions (&&, ||, ??) (#94)

v10.0.0 (2025-07-11)

  • Add support for Angular 20 (#77)
  • Add trailing newline to .po output files to ensure POSIX compliance (#70)

BREAKING CHANGES

  • Minimum Angular version required is now 20.
  • Minimum Node.js version required is now v20.19.0 to align with Angular 20 requirements.
  • Minimum TypeScript version required is now v5.8 to align with Angular 20 requirements.

v9.4.2 (2025-06-30)

  • Prevent overwriting of existing translations in namespaced-json format (#85)

v9.4.1 (2025-06-27)

  • Fix parser not detecting TranslateService when used via inline-injection (#74)
  • Fix issue where brace patterns were ignored due to escaped braces on Windows (#72)

v9.4.0 (2024-12-17)

  • Use relative paths in .po file source comments
  • Add po-source-locations CLI option to control whether source locations are included in .po files (#63)

v9.3.1 (2024-11-19)

  • Resolve runtime error with CommonJS module imports from 'typescript' (#60)
  • Fix extraction of translation keys from nested function expressions (#61)

v9.3.0 (2024-11-18)

  • Fix parser not locating TranslateService in private fields using the # syntax (#55)
  • Add support for the ngx-translate _() marker function (#57)

v9.2.1 (2024-07-19)

  • Fix service parser to recognize the TranslateService property from an aliased superclass (#53)

v9.2.0 (2024-06-10)

Contains all changes from v9.2.0-next.0 plus:

  • Make sort sensitivity opt-in and configurable (#41)
  • Fix service and function parsing when used after bracket syntax casting expression (#51)

v9.2.0-next.0 (2024-05-21)

This is a pre-release available as @vendure/ngx-translate-extract@next. Due to some significant refactors to internals, we are releasing a pre-release version to allow for testing before the final release.

It contains the following changes:

  • Support finding translations pipe in KeyedRead nodes (#47)
  • Fix marker function parsing when used after bracket syntax casting expression (#45)
  • Add key-as-initial-default-value flag (#49)
  • Add support for extraction of translation keys from function expressions (#46)

v9.1.1 (2024-03-08)

  • Fix TranslateService not resolved when injected with readonly keyword (#39)

v9.1.0 (2024-02-05)

  • Add support for caching via the new --cache-file option (#38)

v9.0.3 (2023-11-28)

  • Fix RangeError: Maximum call stack size exceeded on nested templates (#34)
  • Fix alphabetical order of extracted keys (#35)

v9.0.2 (2023-11-24)

  • Fix import from glob packages (#31)
  • Fix extract for Windows file paths (#32)

v9.0.1 (2023-11-23)

  • Update dependencies & removed unused dependencies (#29)
  • fix: Fix syntax error when parsing tsconfig file (#30) Fixes #24

v9.0.0 (2023-11-21)

  • feat: Add support for new Angular v17 control flow syntax (#27)

BREAKING CHANGES

  • minimum angular version required bumped to 17
  • minimum node version required bumped to v18.13.0 to be aligned with the Angular 17 requirements
  • minimum TypeScript version required bumped to v5.2 to be aligned with the Angular 17 requirements

v8.3.0 (2023-11-21)

  • Add support for the --strip-prefix option (#23)

v8.2.3 (2023-09-27)

  • Enable extraction from subclasses without declaration (#21)
  • Fix chained function calls (#21)
  • Add tests (#21)
  • Extract translations when service injected using inject() function (#22)

v8.2.2 (2023-08-10)

  • Fix extraction error with --null-as-default-value (#18)

v8.2.1 (2023-07-21)

  • Fix extraction error introduced in the last version (#14)
  • Add braces to dependencies (#9)

v8.2.0 (2023-07-03)

  • Add source locations in PO compiler output (#13)

v8.1.1 (2023-05-11)

  • Update tsquery dependency to allow usage with TypeScript v5 (#10)

v8.1.0 (2023-03-15)

  • Accommodate marker pipe and directive
  • Enable support for other marker packages apart from the original from Kim Biesbjerg
  • Merged P4's PRs (#1, #2) in order to improve the pipe parser when it comes to pipe args and structural directives
  • Fixed some botched imports
  • Re-added --marker/-m option to CLI thanks to tmijieux's PR
  • Moved to eslint and fixed errors/warnings
  • Other minor clerical changes and small refactoring
  • Remove dependency on a specific version of the Angular compiler. Instead, we rely on the peer dependency. #3

v8.0.5 (2023-03-02)

  • fix(pipe-parser): Search for pipe in structural directives #1

    This fix will now detect the pipe in code like this:

    <ng-container *ngTemplateOutlet="section; context: {
      title: 'example.translation.key' | translate
    }"></ng-container>
    
  • fix: Find uses of translate pipe in pipe arguments #2

    Fixes the following:

    {{ 'value' | testPipe: ('test1' | translate) }} // finds nothing, misses 'test1'
    {{ 'Hello' | translate: {world: ('World' | translate)} }} // finds 'Hello', misses 'World'
    {{ 'previewHeader' | translate:{filename: filename || ('video' | translate)} }} // finds 'previewHeader', misses 'video'
    

v8.0.3 (2022-12-15)

  • First package published under the @vendure namespace
  • Update references in README

v8 - v8.0.2

Prior to v8

See the releases in the original repo.