From b421e367936560f98ffa747506dd7038761bdde6 Mon Sep 17 00:00:00 2001 From: BART! Date: Sun, 21 Jul 2024 02:28:35 +0200 Subject: [PATCH] docs(readme): add trim --- README.md | 22 +++++++++++++++++++++- projects/ngx-translate-cut/README.md | 2 +- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index fdf22aa..fa9bdcd 100644 --- a/README.md +++ b/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) @@ -145,7 +165,7 @@ yarn release:patch ## License -Copyright © 2023 [Lukas Bartak](http://bartweb.cz) +Copyright © 2024 [Lukas Bartak](http://bartweb.cz) Proudly powered by nature 🗻, wind 💨, tea 🍵 and beer 🍺 ;) diff --git a/projects/ngx-translate-cut/README.md b/projects/ngx-translate-cut/README.md index fdf22aa..d387dbb 100644 --- a/projects/ngx-translate-cut/README.md +++ b/projects/ngx-translate-cut/README.md @@ -145,7 +145,7 @@ yarn release:patch ## License -Copyright © 2023 [Lukas Bartak](http://bartweb.cz) +Copyright © 2024 [Lukas Bartak](http://bartweb.cz) Proudly powered by nature 🗻, wind 💨, tea 🍵 and beer 🍺 ;)