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>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.