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 |
---|---|---|
PeeringDB | https://translate.peeringdb.com/exports/rss/peeringdb/ | RSS |
PeeringDB/Javascript | https://translate.peeringdb.com/exports/rss/peeringdb/javascript/ | RSS |
PeeringDB/Server | https://translate.peeringdb.com/exports/rss/peeringdb/server/ | 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 |
---|---|---|
PeeringDB/Javascript | https://translate.peeringdb.com/api/components/peeringdb/javascript/statistics/ | View |
PeeringDB/Server | https://translate.peeringdb.com/api/components/peeringdb/server/statistics/ | View |
As an example, fetching stats for all translations in one component can be done thusly:
curl \ -H "Authorization: Token bkxeRqvGih2kb6nsjffXdzx38uknixgb8QJMRkph" \ https://translate.peeringdb.com/api/components/peeringdb/javascript/translations/
Project | URL | Link |
---|---|---|
PeeringDB | https://translate.peeringdb.com/api/projects/peeringdb/repository/ | Hook |
PeeringDB/Javascript | https://translate.peeringdb.com/api/components/peeringdb/javascript/repository/ | Hook |
PeeringDB/Server | https://translate.peeringdb.com/api/components/peeringdb/server/repository/ | Hook |
As an example, telling Weblate to pull from a remote repository can be done thusly:
curl \ -d operation=pull \ -H "Authorization: Token bkxeRqvGih2kb6nsjffXdzx38uknixgb8QJMRkph" \ https://translate.peeringdb.com/api/projects/peeringdb/repository/
Weblate also supports direct notifications from several code hosting sites:
Hosting site | URL | Note |
---|---|---|
GitHub | https://translate.peeringdb.com/hooks/github/ | Browse the documentation for detailed instructions |
GitLab | https://translate.peeringdb.com/hooks/gitlab/ | Browse the documentation for detailed instructions |
Bitbucket | https://translate.peeringdb.com/hooks/bitbucket/ | Browse the documentation for detailed instructions |
Pagure | https://translate.peeringdb.com/hooks/pagure/ | Browse the documentation for detailed instructions |
Azure Repos | https://translate.peeringdb.com/hooks/azure/ | Browse the documentation for detailed instructions |
Gitea | https://translate.peeringdb.com/hooks/gitea/ | Browse the documentation for detailed instructions |