Skip to content
This repository has been archived by the owner on Feb 20, 2024. It is now read-only.
/ PoTranslator Public archive

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

Notifications You must be signed in to change notification settings

Samurai016/PoTranslator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PoTranslator

PoTranslator

NPM NPM downloads NPM license IBM Watson

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

Functionality:

  • 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

Install globally

$ npm install -g potranslator

Usage

$ 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

Examples

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

Credits

Made with ❤️ by Nicolò Rebaioli