# @vandres/ngx-translate-extract-marker

> Function to manually mark strings to be extracted using ngx-translate-extract

Latest version **3.0.0** (published 2024-03-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install @vandres/ngx-translate-extract-marker
pnpm add @vandres/ngx-translate-extract-marker
yarn add @vandres/ngx-translate-extract-marker
bun add @vandres/ngx-translate-extract-marker
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.0.0 |
| Published | 2024-03-13 |
| First published | 2024-03-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=16 |
| Dependencies | 1 |
| Unpacked size | 7.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Kim Biesbjerg |
| Maintainers | vandres |
| Keywords | angular, ngx-translate, ngx-translate-extract, i18n |

## Links

- npm: https://www.npmjs.com/package/@vandres/ngx-translate-extract-marker
- Repository: https://github.com/vandres/ngx-translate-extract-marker
- Issues: https://github.com/vandres/ngx-translate-extract-marker/issues
- npm.io page: https://npm.io/package/@vandres/ngx-translate-extract-marker

## Dependencies (1)

- [tslib](https://npm.io/package/tslib.md) ^2.3.0

## Alternatives

- [messageformat](https://npm.io/package/messageformat.md) — 329.7K weekly downloads
- [@mintlify/scraping](https://npm.io/package/@mintlify/scraping.md) — 294.8K weekly downloads
- [@mintlify/previewing](https://npm.io/package/@mintlify/previewing.md) — 209.5K weekly downloads
- [@mintlify/prebuild](https://npm.io/package/@mintlify/prebuild.md) — 209.5K weekly downloads
- [@mintlify/link-rot](https://npm.io/package/@mintlify/link-rot.md) — 206.3K weekly downloads

## Recent versions

- 3.0.0 (latest) — 2024-03-13

## README

# ngx-translate-extract-marker
This is a fork of a great library by [Kim Biesbjerg](https://github.com/biesbjerg), but as far as I can tell the original library is unfortunately no longer being developed

## Installation
`$ npm install @vandres/ngx-translate-extract-marker`

## Mark strings for extraction using the marker function
If, for some reason, you want to extract strings not passed directly to `ngx-translate/TranslateService`'s `get()`, `instant()` or `stream()` methods, you can wrap them in a custom marker function to let `ngx-translate-extract` know you want to extract them.

Import and use the marker function:

```ts
import { marker } from '@vandres/ngx-translate-extract-marker';

marker('Extract me', 'Giving optional context');
```

Or you can alias the `marker()` method:

```ts
import { marker as _ } from '@vandres/ngx-translate-extract-marker';

_('Extract me', 'Giving optional context');
```

Then run the extract script: `$ ngx-translate-extract`

## ngx-translate-extract
See [ngx-translate-extract](https://github.com/vendure-ecommerce/ngx-translate-extract) and [ngx-translate](https://github.com/ngx-translate/core) for more details.

## Credits
Original library, idea and code: [@biesbjerg/ngx-translate-extract-marker](https://github.com/biesbjerg/ngx-translate-extract-marker) ❤️

Update to modern Angular: [@colsen1991/ngx-translate-extract-marker](https://github.com/Husbanken/ngx-translate-extract-marker)

---
_Source: https://npm.io/package/@vandres/ngx-translate-extract-marker · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
