Translate Api Language Codes | Google

"q": "Hello", "source": "en", "target": "es", "model": "projects/your-project/locations/us-central1/models/123456789"

Google Translate API language codes are unique identifiers used to specify the source and target languages for translation. These codes act as the primary keys that the neural machine translation models use to determine the linguistic context of the input text and the desired output. google translate api language codes

For languages not covered by the two-letter standard, Google utilizes ISO 639-2 codes. These are typically used for less common languages or broader language families. "German" to de

This returns a JSON array mapping "French" to fr , "German" to de , etc. etc. When in doubt

When in doubt, use the zh-CN / zh-TW format for Chinese, as it is backward compatible with most libraries.

A structured list of supported languages with: