ngx-i18n-extract-regex-cli

0.0.11 • Public • Published

NgxI18nRegexExtractCli

npm version Build & Publish

Tool for extracting translations from Angular app using regex

🛠️ Install

Nodejs 12 or higher need to be installed first

npm install -g ngx-i18n-extract-regex-cli

or

yarn global add ngx-i18n-extract-regex-cli

🚀 Quick start

Go to command line and type

ngx-i18n-extract-regex --help

🛠️ Options

Option Type Default Description
library transloco, ngx-translate transloco Target i18n library
cwd string src Current working directory
source string[] app/**/*.ts', 'app/**/*.html Path to source files
langs string[] assets/i18n/*.json Path to language files
default-value string ███ Default string
dry-run boolean false Run process without writing results
encoding utf-8, ascii, utf8, utf16le, ucs2, ucs-2, base64, latin1, binary, hex utf-8 Encoding for writing results

🪪 License

Copyright © 2024 Dominik Hladik

All contents are licensed under the MIT license.

Package Sidebar

Install

npm i ngx-i18n-extract-regex-cli

Weekly Downloads

68

Version

0.0.11

License

MIT

Unpacked Size

17.3 kB

Total Files

7

Last publish

Collaborators

  • celtian