Translation API for Bash/Shell Script

Translate texts using Nitro Translation API!

The Nitro Translation API offers a straightforward programmatic interface to facilitate human translations of any given text into multiple supported languages. Working with professional translators instead of machine algorithms provides high-quality and culturally accurate translations.

framework-1

How to use the Nitro Translation API with Bash/Shell Script?

Integrate the Nitro Translation API into your Bash/Shell Script projects to benefit from multilingual translation support. With real-time translation capabilities, you can increase your project's global reach and provide a better experience for users across different languages.

Read API Documentation for Bash/Shell Script Translation

Setting Up Translation API Integration With Your Bash or Shell scripts

To use the Nitro Translation API in your Bash or Shell scripts, follow these steps:

  1. Generate API Key: Obtain your API key from the Nitro settings page. This key will be used for HTTP Basic authentication.
  2. Encode Credentials: Encode your API key in Base64 format. The format should be Base64(API_KEY:empty_password) where empty_password is an empty string.
  3. Write Script:

    - Use curl or wget to make HTTP requests from your script.

    - Include the Authorization header with the Base64 encoded API key in your request.

    - Example curl command:

    API_KEY="your_api_key"
    AUTH_HEADER=$(echo -n "$API_KEY:" | base64)
    curl -X POST "https://api.nitrotranslation.com/translate" \
    -H "Authorization: Basic $AUTH_HEADER" \
    -H "Content-Type: application/json" \
    -d '{"text": "Hello, world!", "target_lang": "es"}'

Supported Languages

With Nitro’s translation API for Bash/Shell Script, you can access a wide range of supported languages for fast translations, including English, Spanish, French, German and many more. Ensure your content reaches global audiences by utilizing accurate and context-aware translations for over 170+ language pairs.

Language codeLanguageLanguage codeLanguage
arArabicazAzerbaijani
beBelarusianbgBulgarian
bnBengalicaCatalan
csCzechdaDanish
deGermanelGreek
enEnglishes-ESSpanish
es-MXSpanish (Mexico)etEstonian
faPersian (Farsi)fiFinnish
frFrenchheHebrew
hiHindihrCroatian
huHungarianidIndonesian
isIcelandicitItalian
jaJapanesekkKazakh
koKoreanltLithuanian
lvLatvianml-INMalayalam
msMalaymyBurmese
nlDutchnoNorwegian
plPolishpt-BRPortuguese (Brazilian)
pt-PTPortugueseroRomanian
ruRussianskSlovak
slSloveniansrSerbian (Cyrillic)
sr-CSSerbian (Latin)sv-SESwedish
taTamilthThai
tlTagalogtrTurkish
ukUkrainianur-PKUrdu (Pakistan)
uzUzbekviVietnamese
zh-CNChinese Simplifiedzh-TWChinese Traditional
afAfrikaansfr-CAFrench (Canada)
hy-AMArmeniankaGeorgian
teTelugutgTajik
ml-INMalayalamkyKyrgyz
msMalay
Show more

Pricing

Nitro’s translation API for Bash/Shell Script is free - you do not pay for access, integration, calls, key generation or anything else, except the translations you order!

Simply request the translation for Bash/Shell Script through Nitro's Translation API, and you'll be billed based on the number of characters translated, including spaces, at competitive rates. Start translating without minimum order requirements and get high-quality translations tailored to your needs.

girl with computer
girl with computer