Requirements

Requires that you set up a project on poeditor.com and generate an API key. Instructions are available on their API reference

Angular i18n

This project was written specifically to connect an Angular typescript application to poeditor.com for use with the XMB message format.

The Angular documentation on i18n focuses on the XLIFF format, but poeditor.com only supports XMB.
XMB is used heavily inside of Google, but is not well documented externally.
Note that XMB is the file format for messageterms that have been extracted from the application. XTB is the related file format for the translation output that is actually bunded in the application.

Configuration

A sample config file is included in the project under config/poeditor.sample.json. This will need to be modified to support your preferred settings

apiToken : poeditor.com api token

projectId : poeditor.com projectId

importFile : relative location of the terms to be posted to the api

importSyncTerms : whether or not to delete terms from the project not found in the import file when uploading

exportDir : local directory to download translated files

exportFiles : hash map of languages to download and the file name to use