New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@angular-ru/ngx-i18n-combine

Package Overview
Dependencies
Maintainers
2
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@angular-ru/ngx-i18n-combine

Merge i18n files from components and merge to common locale files

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

ngx-i18n-combine

In progress...

Install

npm install --save @angular-ru/ngx-i18n-combine

Usage

Add an combine script to your project's package.json:

"scripts": {
  "combine": "ngx-i18n-combine -i ./src/i18n/ -o ./src/assets/i18n/"
}

or

You can now run npm run combine to combine files.

Examples

Combine from multiple dirs

ngx-i18n-combine -i ./src/**/i18n -o ./src/assets/i18n/i18n.json

Combine from multiple dirs

ngx-i18n-combine -i ./src/component-1/i18n ./src/component-2/i18n -o ./src/assets/i18n

Combine and save to multiple files

ngx-i18n-combine -i ./src -o ./src/assets/i18n

or

ngx-i18n-combine -i ./src/**/i18n/*.json -o ./src/assets/i18n/{en,de}.json

or

ngx-i18n-combine -i ./src/component-1/i18n/en.json ./src/component-2/i18n/en.json -o ./src/assets/i18n/en.json

CLI

Usage:
ngx-i18n-combine [options]

Options:
--version, -v       Show version number 
                    [boolean]

--help, -h          Show help 
                    [boolean]

--input, -i         Paths you would like to extract files from. 
                    You can use path expansion, 
                    glob patterns and multiple paths 
                    [array] 
                    [default: current working path]

--output, -o        Paths where you would like to save merged files. 
                    You can use path expansion, 
                    glob patterns and multiple paths 
                    [array] 
                    [required]
                    
--indent, -it       Output format indentation
                    [string]
                    [default: "\t"]

--sort, -s          Sort strings in alphabetical order when saving 
                    [boolean] 
                    [default: false]

--minify, -m        Minify strings in output files 
                    [boolean] 
                    [default: false]

--verbose, -vb      If true, prints all processed file paths to console 
                    [boolean] 
                    [default: true]
                    
--watch, -w         Watch changes
                    [boolean] 
                    [default: false]

Keywords

FAQs

Package last updated on 28 Jan 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc