Login Account

Getting started

Localisation? Nothing simpler than that!

Just register, create an api token and add the following command into your extraction process:

XLIFF

curl https://api.doloc.io -H "Authorization: Bearer $API_TOKEN" --data-binary "@input.xlf" -o output.xlf

JSON

curl https://api.doloc.io -H "Authorization: Bearer $API_TOKEN" -F source="@source.en.json" -F target="@target.de.json" -o result.de.json 

This will automatically upload the XLIFF/JSON file(s) and translate all targets! You choose, if you want your input file be overwritten by the output file or not!

Windows Users: Did you know curl is installed on all windows 10/11 versions? For PowerShell you might need to replace curl with curl.exe!

How to integrate

You can certainly integrate the above process into your CI/CD pipeline, but we recommend adopting it even earlier in your workflow. Whenever a developer updates any text, they should run the command to regenerate translations — often alongside extracting new texts to avoid additional overhead. This approach keeps translations current and helps you spot missing entries early on, for instance during a PR review. Plus, setting it up is straightforward and takes only a few minutes.

Further Reading