You can retrieve various data from Weblate in machine readable format.
RSS feeds
To follow translation progress you can use RSS feeds, detailing all important translation changes.
Project | URL | Link |
---|---|---|
Sangoma Phones | http://weblate.freepbx.org/exports/rss/sangoma-phones/ | RSS |
Sangoma Phones/LCD Interface | http://weblate.freepbx.org/exports/rss/sangoma-phones/lcd-interface/ | RSS |
Sangoma Phones/Web GUI | http://weblate.freepbx.org/exports/rss/sangoma-phones/web-gui/ | RSS |
Per language RSS feeds are also available, you can construct them by appending a language code to the above URLs.
Statistics
Translation statistics for every component in the JSON format allows you to use the data in other websites or tools.
Project | URL | Link |
---|---|---|
Sangoma Phones/LCD Interface | http://weblate.freepbx.org/api/components/sangoma-phones/lcd-interface/statistics/ | View |
Sangoma Phones/Web GUI | http://weblate.freepbx.org/api/components/sangoma-phones/web-gui/statistics/ | View |
As an example, fetching stats for all translations in one component can be done thusly:
curl \ -H "Authorization: Token TOKEN" \ http://weblate.freepbx.org/api/components/sangoma-phones/lcd-interface/translations/
Notification hooks
With notification hooks, Weblate will automatically import changes made by your developers, and allows continuous translation.
Project | URL | Link |
---|---|---|
Sangoma Phones | http://weblate.freepbx.org/api/projects/sangoma-phones/repository/ | Hook |
Sangoma Phones/LCD Interface | http://weblate.freepbx.org/api/components/sangoma-phones/lcd-interface/repository/ | Hook |
Sangoma Phones/Web GUI | http://weblate.freepbx.org/api/components/sangoma-phones/web-gui/repository/ | Hook |
As an example, telling Weblate to pull from a remote repository can be done thusly:
curl \ -d operation=pull \ -H "Authorization: Token TOKEN" \ http://weblate.freepbx.org/api/projects/sangoma-phones/repository/
Weblate also supports direct notifications from several code hosting sites:
Hosting site | URL | Note |
---|---|---|
GitHub | http://weblate.freepbx.org/hooks/github/ | Browse the documentation for detailed instructions |
GitLab | http://weblate.freepbx.org/hooks/gitlab/ | Browse the documentation for detailed instructions |
Bitbucket | http://weblate.freepbx.org/hooks/bitbucket/ | Browse the documentation for detailed instructions |