- 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)
- Resolve runtime error with CommonJS module imports from 'typescript' (#60)
- Fix extraction of translation keys from nested function expressions (#61)
- Fix parser not locating
TranslateService
in private fields using the#
syntax (#55) - Add support for the ngx-translate
_()
marker function (#57)
- Fix service parser to recognize the TranslateService property from an aliased superclass (#53)
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)
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)
- Fix TranslateService not resolved when injected with readonly keyword (#39)
- Add support for caching via the new
--cache-file
option (#38)
- Fix
RangeError: Maximum call stack size exceeded
on nested templates (#34) - Fix alphabetical order of extracted keys (#35)
- Update dependencies & removed unused dependencies (#29)
- fix: Fix syntax error when parsing tsconfig file (#30) Fixes #24
- 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
- Add support for the
--strip-prefix
option (#23)
- Enable extraction from subclasses without declaration (#21)
- Fix chained function calls (#21)
- Add tests (#21)
- Extract translations when service injected using
inject()
function (#22)
- Fix extraction error with --null-as-default-value (#18)
- Add source locations in PO compiler output (#13)
- Update tsquery dependency to allow usage with TypeScript v5 (#10)
- 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
-
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'
- First package published under the @vendure namespace
- Update references in README
- Support for Angular 13 + 14 added by https://github.com/bartholomej
See the releases in the original repo.