Home

Awesome

<p align="center"> <a href="https://github.com/Celtian/ngx-i18n-extract-regex-cli" target="blank"><img src="assets/logo.svg?sanitize=true" alt="" width="120"></a> <h1 align="center">NgxI18nRegexExtractCli</h1> </p>

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

OptionTypeDefaultDescription
librarytransloco, ngx-translatetranslocoTarget i18n library
cwdstringsrcCurrent working directory
sourcestring[]app/**/*.ts', 'app/**/*.htmlPath to source files
langsstring[]assets/i18n/*.jsonPath to language files
default-valuestring███Default string
dry-runbooleanfalseRun process without writing results
encodingutf-8, ascii, utf8, utf16le, ucs2, ucs-2, base64, latin1, binary, hexutf-8Encoding for writing results

🪪 License

Copyright © 2024 Dominik Hladik

All contents are licensed under the MIT license.