Package Exports
- @biesbjerg/ngx-translate-extract-marker
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@biesbjerg/ngx-translate-extract-marker) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Mark strings for extraction using a marker function
If, for some reason, you want to extract strings not passed directly to TranslateService's get() or instant() methods, you can wrap them in a custom marker function to let ngx-translate-extract know you want to extract them.
Install marker function:
npm install @biesbjerg/ngx-translate-extract-marker
import { marker } from '@biesbjerg/ngx-translate-extract-marker';
marker('Extract me');Add the marker argument when running the extract script:
ngx-translate-extract ... --marker marker
You can alias the marker function if needed:
import { marker as _ } from '@biesbjerg/ngx-translate-extract-marker';
_('Extract me');ngx-translate-extract ... --marker _