Skip to content

Commit

Permalink
docs(readme): add trim
Browse files Browse the repository at this point in the history
  • Loading branch information
bartholomej committed Jul 22, 2024
1 parent 57e2b90 commit b421e36
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
22 changes: 21 additions & 1 deletion 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 Expand Up @@ -145,7 +165,7 @@ yarn release:patch

## License

Copyright &copy; 2023 [Lukas Bartak](http://bartweb.cz)
Copyright &copy; 2024 [Lukas Bartak](http://bartweb.cz)

Proudly powered by nature 🗻, wind 💨, tea 🍵 and beer 🍺 ;)

Expand Down
2 changes: 1 addition & 1 deletion projects/ngx-translate-cut/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ yarn release:patch

## License

Copyright &copy; 2023 [Lukas Bartak](http://bartweb.cz)
Copyright &copy; 2024 [Lukas Bartak](http://bartweb.cz)

Proudly powered by nature 🗻, wind 💨, tea 🍵 and beer 🍺 ;)

Expand Down

0 comments on commit b421e36

Please sign in to comment.