Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Celtian/ngx-i18n-extract-regex-cli
Tool for extracting translations from Angular app using regex
https://github.com/Celtian/ngx-i18n-extract-regex-cli
cli library typescript
Last synced: 1 day ago
JSON representation
Tool for extracting translations from Angular app using regex
- Host: GitHub
- URL: https://github.com/Celtian/ngx-i18n-extract-regex-cli
- Owner: Celtian
- License: mit
- Created: 2024-01-03T22:21:36.000Z (11 months ago)
- Default Branch: master
- Last Pushed: 2024-04-11T11:48:11.000Z (7 months ago)
- Last Synced: 2024-04-11T12:43:14.135Z (7 months ago)
- Topics: cli, library, typescript
- Language: TypeScript
- Homepage:
- Size: 298 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
- fucking-awesome-angular - ngx-i18n-extract-regex-cli - Tool for extracting translations from Angular app using regex. (Table of contents / Angular)
- awesome-angular - ngx-i18n-extract-regex-cli - Tool for extracting translations from Angular app using regex. (Table of contents / Angular)
README
NgxI18nRegexExtractCli
[![npm version](https://badge.fury.io/js/ngx-i18n-extract-regex-cli.svg)](https://badge.fury.io/js/ngx-i18n-extract-regex-cli)
[![Build & Publish](https://github.com/celtian/ngx-i18n-extract-regex-cli/workflows/Build%20&%20Publish/badge.svg)](https://github.com/celtian/ngx-i18n-extract-regex-cli/actions)> Tool for extracting translations from Angular app using regex
## 🛠️ Install
_Nodejs 12 or higher need to be installed first_
```terminal
npm install -g ngx-i18n-extract-regex-cli
```or
```terminal
yarn global add ngx-i18n-extract-regex-cli
```## 🚀 Quick start
_Go to command line and type_
```terminal
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](https://github.com/Celtian)
All contents are licensed under the [MIT license].
[mit license]: LICENSE