diff --git a/package.json b/package.json index 47587b6..3e2b4df 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ngx-translate-cut", - "version": "18.0.0", + "version": "18.1.0", "description": "Angular pipe for cutting translations (plugin for ngx-translate)", "author": "Lukas Bartak (https://github.com/bartholomej)", "scripts": { diff --git a/projects/ngx-translate-cut/README.md b/projects/ngx-translate-cut/README.md index d387dbb..fa9bdcd 100644 --- a/projects/ngx-translate-cut/README.md +++ b/projects/ngx-translate-cut/README.md @@ -86,6 +86,8 @@ In your template use `translateCut:` pipe right after `translate` pipe f ## Options +### Separator + If you are not satisfied with the basic settings of the separator (which is `|`), you can choose your own separator ```typescript @@ -103,6 +105,24 @@ If you are not satisfied with the basic settings of the separator (which is `|`) }) ``` +### Trim + +If you do not want to trim your translation strings before cutting you can set `trim` to `false` (default is `true`). See this [explanation](https://github.com/bartholomej/ngx-translate-cut/issues/62)... + +```typescript + import { NgxTranslateCutModule } from 'ngx-translate-cut'; + + @NgModule({ + // ... + imports: [ + // ... + NgxTranslateCutModule.forRoot({ + trim: false + }), + ] + }) +``` + ## Dependencies [@ngx-translate/core](https://github.com/ngx-translate/core) diff --git a/projects/ngx-translate-cut/package.json b/projects/ngx-translate-cut/package.json index 66c46a3..a80523d 100644 --- a/projects/ngx-translate-cut/package.json +++ b/projects/ngx-translate-cut/package.json @@ -1,6 +1,6 @@ { "name": "ngx-translate-cut", - "version": "18.0.0", + "version": "18.1.0", "description": "Angular pipe for cutting translations (plugin for ngx-translate)", "author": "Lukas Bartak (https://github.com/bartholomej)", "peerDependencies": {