This project is a simple way to display the progress of a lokalise project in a Shields.io badge.
Fork this repository and add the following secrets to your fork:
LOKALISE_API_TOKEN
: API token for Lokalise. Read-only access is enough. Please pay attention to the difference between API token and SDK token.LOKALISE_PROJECT_ID
: The ID of the Lokalise project you want to track. You can find it in the URL of the project page or inMore... -> Settings -> Project ID
.
Warning
As described in Github Docs, scheduled workflows are disabled by default for forked repositories. You need to manually enable it in order to make the workflow work.
Then use the raw URL to .json
files under badges
folder in your fork repo to display them through Endpoint Badge support.
Edit meta.json
if you want to customize the badge content and/or add new badges.
The file is a JSON dictionary with its keys as the badge file name and its values as the badge message. The badge message is a jq string with filter to extract values needed from Lokalise API response.
Disclaimer: This project is not affiliated with Lokalise.