This package has been deprecated

Author message:

This package is part of @ngneat/transloco-optimize, see https://ngneat.github.io/transloco/docs/tools/optimize.

@ngneat/transloco-remove-comments

1.0.2 • Public • Published

Translators Comments

Help the translator with a description and meaning

There are times where we need to help the translator with a description and meaning. To translate a text message accurately, the translator may need additional information or context.

For each translation key that requires a description, we can add a companion key post-fixed with .comment, as shown in the example below:

{
  "hello": "",
  "hello.comment": "Write a comment for the translator"
}

We don't want these keys to get into our final bundle, so we can remove them using the optimize library when building the production environment.

The library will take care of removing these keys from the translation files specified in the path.

Package Sidebar

Install

npm i @ngneat/transloco-remove-comments

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

4.15 kB

Total Files

5

Last publish

Collaborators

  • shahar.kazaz
  • itayod
  • netanel-ngneat