Steps for the translation workflow in a Electron application:
- Requirements
- jsxgettext - this is a node module to generate po file from JavaScript file
npm install jsxgettext --save-dev
to install - gettext - native gettext tool to merge po files
brew install gettext
and runbrew link gettext --force
if needed. - node-gettext - this is a node module to parse and read PO file
npm install node-gettext --save
to install