Skip to content

Command-line tool for merging XLF files (useful when working with Angular i18n)

License

Notifications You must be signed in to change notification settings

Darkein/xlf-merge

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xlf-merge

Command line tool that merges any number of XLF 1.2 files.

Useful for Angular apps where the NG compiler requires single translation file per language. If your translations are organized into many small XLF files you can run this tool to merge them before invoking Angular compilation.

Installation

npm install -g xlf-merge

Usage

  • Accespts any number of input files (wildcards supported)
  • Requires single output file path (-o parameter)
# Merges three input files into output.xlf
xlf-merge input1.xlf input2.xlf input3.xlf -o output.xlf

# Merges all language-specific XLF files in directory i18n into a file containing all translations per language
xlf-merge i18n/*.en.xlf -o all.en.xlf
xlf-merge i18n/*.de.xlf -o all.de.xlf
xlf-merge i18n/*.fr.xlf -o all.fr.xlf

Author

Jaroslav Svak

License

MIT

About

Command-line tool for merging XLF files (useful when working with Angular i18n)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%