Skip to content

Commit

Permalink
chore(update): release 18.1.0 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
bartholomej committed Aug 20, 2024
1 parent 8432f28 commit 93de6bc
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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 <[email protected]> (https://github.com/bartholomej)",
"scripts": {
Expand Down
20 changes: 20 additions & 0 deletions projects/ngx-translate-cut/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ In your template use `translateCut:<number>` 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
Expand All @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion projects/ngx-translate-cut/package.json
Original file line number Diff line number Diff line change
@@ -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 <[email protected]> (https://github.com/bartholomej)",
"peerDependencies": {
Expand Down

0 comments on commit 93de6bc

Please sign in to comment.