Skip to main content
GET
/
translations
/
{domain}
/
{locale}
JavaScript
import Courier from '@trycourier/courier';

const client = new Courier({
  apiKey: 'My API Key',
});

const translation = await client.translations.retrieve('locale', { domain: 'domain' });

console.log(translation);
"<string>"

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

domain
string
required

The domain you want to retrieve translations for. Only default is supported at the moment

locale
string
required

The locale you want to retrieve the translations for

Response

.po file translation content

The response is of type string.