import Courier from '@trycourier/courier';
const client = new Courier({
apiKey: process.env['COURIER_API_KEY'], // This is the default and can be omitted
});
const translation = await client.translations.retrieve('locale', { domain: 'domain' });
console.log(translation);"<string>"Get translations by locale
import Courier from '@trycourier/courier';
const client = new Courier({
apiKey: process.env['COURIER_API_KEY'], // This is the default and can be omitted
});
const translation = await client.translations.retrieve('locale', { domain: 'domain' });
console.log(translation);"<string>"Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The domain you want to retrieve translations for. Only default is supported at the moment
The locale you want to retrieve the translations for
.po file translation content
The response is of type string.