@medbenmakhlouf/ngx-translate-extract-marker
TypeScript icon, indicating that this package has built-in type declarations

17.0.0 • Public • Published

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 @medbenmakhlouf/ngx-translate-extract-marker

import { marker } from '@medbenmakhlouf/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 '@medbenmakhlouf/ngx-translate-extract-marker';

_('Extract me');

ngx-translate-extract ... --marker _

Package Sidebar

Install

npm i @medbenmakhlouf/ngx-translate-extract-marker

Weekly Downloads

123

Version

17.0.0

License

MIT

Unpacked Size

5.14 kB

Total Files

10

Last publish

Collaborators

  • medbenmakhlouf