import Courier from '@trycourier/courier';
const client = new Courier({
apiKey: process.env['COURIER_API_KEY'], // This is the default and can be omitted
});
await client.translations.update('locale', { domain: 'domain', body: 'body' });{
"message": "<string>",
"type": "invalid_request_error"
}Update a translation
import Courier from '@trycourier/courier';
const client = new Courier({
apiKey: process.env['COURIER_API_KEY'], // This is the default and can be omitted
});
await client.translations.update('locale', { domain: 'domain', body: 'body' });{
"message": "<string>",
"type": "invalid_request_error"
}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 body is of type string.