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 |
---|---|---|
Habitica Android | https://translate.habitica.com/exports/rss/habitica-android/ | RSS |
Habitica Android/Main Strings | https://translate.habitica.com/exports/rss/habitica-android/main-strings/ | RSS |
Habitica Android/Profile | https://translate.habitica.com/exports/rss/habitica-android/profile/ | RSS |
Habitica Android/Sidebar | https://translate.habitica.com/exports/rss/habitica-android/sidebar/ | RSS |
Habitica Android/Store | https://translate.habitica.com/exports/rss/habitica-android/store/ | RSS |
Habitica Android/Tutorial | https://translate.habitica.com/exports/rss/habitica-android/tutorial/ | 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 |
---|---|---|
Habitica Android/Main Strings | https://translate.habitica.com/api/components/habitica-android/main-strings/statistics/ | View |
Habitica Android/Profile | https://translate.habitica.com/api/components/habitica-android/profile/statistics/ | View |
Habitica Android/Sidebar | https://translate.habitica.com/api/components/habitica-android/sidebar/statistics/ | View |
Habitica Android/Store | https://translate.habitica.com/api/components/habitica-android/store/statistics/ | View |
Habitica Android/Tutorial | https://translate.habitica.com/api/components/habitica-android/tutorial/statistics/ | View |
As an example, fetching stats for all translations in one component can be done thusly:
curl \ -H "Authorization: Token v6D0qdEBXfGrqutF2DyqJn0uTUwQcVR0vI8lPgdP" \ https://translate.habitica.com/api/components/habitica-android/main-strings/translations/
Project | URL | Link |
---|---|---|
Habitica Android | https://translate.habitica.com/api/projects/habitica-android/repository/ | Hook |
Habitica Android/Main Strings | https://translate.habitica.com/api/components/habitica-android/main-strings/repository/ | Hook |
Habitica Android/Profile | https://translate.habitica.com/api/components/habitica-android/profile/repository/ | Hook |
Habitica Android/Sidebar | https://translate.habitica.com/api/components/habitica-android/sidebar/repository/ | Hook |
Habitica Android/Store | https://translate.habitica.com/api/components/habitica-android/store/repository/ | Hook |
Habitica Android/Tutorial | https://translate.habitica.com/api/components/habitica-android/tutorial/repository/ | Hook |
As an example, telling Weblate to pull from a remote repository can be done thusly:
curl \ -d operation=pull \ -H "Authorization: Token v6D0qdEBXfGrqutF2DyqJn0uTUwQcVR0vI8lPgdP" \ https://translate.habitica.com/api/projects/habitica-android/repository/
Weblate also supports direct notifications from several code hosting sites:
Hosting site | URL | Note |
---|---|---|
GitHub | https://translate.habitica.com/hooks/github/ | Browse the documentation for detailed instructions |
GitLab | https://translate.habitica.com/hooks/gitlab/ | Browse the documentation for detailed instructions |
Bitbucket | https://translate.habitica.com/hooks/bitbucket/ | Browse the documentation for detailed instructions |
Pagure | https://translate.habitica.com/hooks/pagure/ | Browse the documentation for detailed instructions |
Azure Repos | https://translate.habitica.com/hooks/azure/ | Browse the documentation for detailed instructions |