biesbjerg / ngx-translate-extract

Extract translatable (using ngx-translate) strings and save as a JSON or Gettext pot file
MIT License
525 stars 198 forks source link

Can not use tanslate.instance in the same line more than once #27

Closed Eeliya closed 7 years ago

Eeliya commented 7 years ago

ng2-translate-extract can not extract the following text properly.

console.log(this.translate.instant('some_text'), this.translate.instant('some_other'));

biesbjerg commented 7 years ago

Please update to newest version.

npm install @biesbjerg/ngx-translate-extract --save-dev

XoneFobic commented 7 years ago

image

npm isn't updated, so will only install 0.6.0

biesbjerg commented 7 years ago

Package was renamed, that's why. I've marked the package as deprecated, but doesn't seem like the user is notified when installing it. @biesbjerg/ng2-translate-extract --> @biesbjerg/ngx-translate-extract