open-index/open-npm huggingface dataset:
npm package: @l10nmonster/helpers-deepl
Description: Helpers to integrate with DeepL
Author: Diego Lagunas
Latest version: 3.1.3

# @l10nmonster/helpers-deepl

L10n Monster helper for integrating with DeepL machine translation services.

## Installation

```bash
npm install @l10nmonster/helpers-deepl
```

## Usage

```javascript
import { DeepLProvider } from '@l10nmonster/helpers-deepl';

const deeplProvider = new DeepLProvider({
    authKey: 'your-deepl-api-key',
    formalityMap: {
        'de': 'more',    // Use formal German
        'fr': 'less'     // Use informal French
    },
    modelType: 'quality_optimized'
});
```

## Configuration Options

- **authKey** (required): Your DeepL API authentication key
- **formalityMap** (optional): Object mapping target languages to formality levels:
  - `less` - Less formal
  - `more` - More formal  
  - `default` - Default formality
  - `prefer_less` - Prefer less formal if available
  - `prefer_more` - Prefer more formal if available
- **modelType** (optional): Translation model type:
  - `quality_optimized` (default)
  - `prefer_quality_optimized`
  - `latency_optimized`

## Features

- Supports XML tag handling for preserving markup
- Automatic usage tracking and limit monitoring
- Context/instructions support for better translations
- Formality control for supported languages
- Comprehensive language support information

## Provider Information

The provider includes detailed information about:
- Current usage statistics (characters and documents)
- Supported source languages
- Supported target languages with formality support indicators
- Translation limits and warnings

## Dependencies

- `deepl-node`: Official DeepL Node.js client
- `@l10nmonster/core`: Core L10n Monster functionality (peer dependency)
npm package: @l10nmonster/helpers-html
Description: Helpers to deal with HTML file formats
Author: Diego Lagunas
Latest version: 3.0.4

# L10n Monster HTML Helpers

|Module|Export|Description|
|---|---|---|
|`helpers-html`|`Filter`|Filter for HTML files.|


```js
this.resourceFilter = new html.Filter();
```

A filter for segmenting HTML files. There are no constructor parameters at the moment.
Additional encoders/decoders suitable for HTML are included in the basic `helpers` package.
npm package: @l10nmonster/helpers-ios
Description: Helpers to deal with iOS file formats
Author: Diego Lagunas
Latest version: 3.0.4

# L10n Monster iOS Helpers

|Module|Export|Description|
|---|---|---|
|`helpers-ios`|`StringsFilter`|Filter for .strings files.|
|`helpers-ios`|`escapesDecoder`|Decoder for escaped chars like `\n` and `\U00a0`.|
|`helpers-ios`|`phDecoder`|Decoder for `%d` style placeholders.|
|`helpers-ios`|`escapesEncoder`|Encoder for escaped chars like `\n`.|

### iOS Strings Filter

```js
this.resourceFilter = new ios.StringsFilter();
```

A filter for strings files used in iOS apps.

* [LIMITATION] it doesn't support files encoded in UTF-16.
npm package: @l10nmonster/helpers-java
Description: Helpers to deal with Java file formats
Author: Diego Lagunas
Latest version: 3.0.4

# L10n Monster Java Helpers

|Module|Export|Description|
|---|---|---|
|`helpers-java`|`escapesDecoder`|Decoder for escaped chars like `\n` and `\u00a0`.|
|`helpers-java`|`MFQuotesDecoder`|Decoder for dealing with quotes in MessageFormat strings.|
|`helpers-java`|`escapesEncoder`|Encoder for escaped chars like `\n`.|
|`helpers-java`|`MFQuotesEncoder`|Encoder for dealing with quotes in MessageFormat strings.|

###  Java Properties Filter

```js
this.resourceFilter = new filters.JavaPropertiesFilter();
```

A filter for properties files used as defined by the Java resource bundle specification.

* [TODO] it needs an option to make it stricter to deal with technically invalid files.