diff --git a/projects/ngx-translate-extract-marker/README.md b/projects/ngx-translate-extract-marker/README.md index f473689..b528028 100644 --- a/projects/ngx-translate-extract-marker/README.md +++ b/projects/ngx-translate-extract-marker/README.md @@ -5,21 +5,21 @@ Install marker function: `npm install @biesbjerg/ngx-translate-extract-marker` ```ts -import { extract } from '@biesbjerg/ngx-translate-extract-marker'; +import { marker } from '@biesbjerg/ngx-translate-extract-marker'; -extract('Extract me'); +marker('Extract me'); ``` Add the `marker` argument when running the extract script: -`ngx-translate-extract ... -m extract` +`ngx-translate-extract ... --marker marker` You can alias the marker function if needed: ```ts -import { extract as _ } from '@biesbjerg/ngx-translate-extract-marker'; +import { marker as _ } from '@biesbjerg/ngx-translate-extract-marker'; _('Extract me'); ``` -`ngx-translate-extract ... -m _` +`ngx-translate-extract ... --marker _` diff --git a/projects/ngx-translate-extract-marker/package.json b/projects/ngx-translate-extract-marker/package.json index c2ab461..360fc9b 100644 --- a/projects/ngx-translate-extract-marker/package.json +++ b/projects/ngx-translate-extract-marker/package.json @@ -1,7 +1,7 @@ { "name": "@biesbjerg/ngx-translate-extract-marker", "description": "Function to manually mark strings to be extracted using ngx-translate-extract", - "version": "0.0.2", + "version": "1.0.0", "repository": { "type": "git", "url": "https://github.com/biesbjerg/ngx-translate-extract-marker.git" @@ -15,6 +15,7 @@ "keywords": [ "angular", "ngx-translate", - "ngx-translate-extract" + "ngx-translate-extract", + "i18n" ] } \ No newline at end of file diff --git a/projects/ngx-translate-extract-marker/src/lib/ngx-translate-extract-marker.ts b/projects/ngx-translate-extract-marker/src/lib/ngx-translate-extract-marker.ts index 63bb69b..4a8ad4d 100644 --- a/projects/ngx-translate-extract-marker/src/lib/ngx-translate-extract-marker.ts +++ b/projects/ngx-translate-extract-marker/src/lib/ngx-translate-extract-marker.ts @@ -1,3 +1,3 @@ -export function extract(key: T): T { +export function marker(key: T): T { return key; }