Skip to content

Tool for extracting translations from Angular app using regex

License

Notifications You must be signed in to change notification settings

Celtian/ngx-i18n-extract-regex-cli

Repository files navigation

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.

About

Tool for extracting translations from Angular app using regex

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages