CLI tool for translate .po/.pot files
Last updated 9 months ago by nicolorebaioli .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install potranslator 
SYNC missed versions from official npm registry.



NPM NPM downloads NPM license IBM Watson

PoTranslator is a CLI tool created to automatically translate .po/.pot files.


  • Automatic translation
  • Possibility to modify the translation if the automatic one is not precise
  • Dozens of languages supported

PoTranslator uses IBM Watson Language Translator service to provide automatic translation.

Check out here the available languages


Install globally

$ npm install -g potranslator


$ potranslator

You can also provide optional parameters:

$ potranslator -p <InputFile> -l <OutputLanguage>
  • <InputFile> is the path of the .po/.pot file that PoTranslator will translate
  • <OutputLanguage> is the ISO code of the target language that you want that your file will be translated to (See the link above for available languages).

PoTranslator automatically detect the input language, if it is not possible, the tool will ask you for the ISO code of the input language, as you can see in the image below.
Input language


Without options provided

$ potranslator

Example 1

With <InputFile> provided

$ potranslator -p ./Documents/en.po

Example 2

With <InputFile> and <OutputLanguage> provided (and output file existing yet)

$ potranslator -p ./Documents/en.po -l it

Example 3


Made with :heart: by Nicolò Rebaioli

Current Tags

  • 1.0.5                                ...           latest (9 months ago)

6 Versions

  • 1.0.5                                ...           9 months ago
  • 1.0.4                                ...           a year ago
  • 1.0.3                                ...           a year ago
  • 1.0.2                                ...           a year ago
  • 1.0.1                                ...           a year ago
  • 1.0.0                                ...           a year ago
Maintainers (1)
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 0
Last Month 0
Dependencies (16)
Dev Dependencies (0)
Dependents (0)

Copyright 2014 - 2017 © taobao.org |