Using translation software is the new normal for translation, but how can they assist in translating your app or web content? It usually happens through APIs. For understanding translation APIs is we must understand what an API is.
API stands for Application Programming Interface. Basically, by using an API, two applications can communicate with one another.
A translation API is an interface that lets you send text to a service and get translations back programmatically. Instead of copying strings into a translation tool manually, your code sends a request and receives translated content in the response. This is useful when you want to translate content on the fly, integrate translations into your build pipeline, or automate parts of your localization workflow.
Most translation APIs work as simple input/output endpoints. You send text in one language, pick a target language, and get the translation back. Services like Google Translate or DeepL offer this kind of API. It works well for quick translations, but it doesn’t know anything about your product, your terminology, or how you want things to sound.
Localazy Translation API
Localazy now offers a translation endpoint as part of its existing API: POST /projects/{projectId}/ai.
It gives you access to Localazy AI and other machine translation engines directly from your code.
A few things that make it different from a generic translation API:
- You can translate multiple items in a single request, including plural forms.
- You can pass optional context along with your strings, so the translation engine understands what it’s translating and where it appears.
- And you can configure fallback engines, so if one provider doesn’t support your target language, the request still succeeds using an alternative.
Because the endpoint is tied to your Localazy project, translations can take advantage of your existing glossary and style guide. This means your API-driven translations stay consistent with everything else in your project.
Translations made through this endpoint consume credits from your account, the same credit system used across all Localazy services.