Import master translations JSON
Import master translations JSON using the Novu REST API. Requires your environment secret key in the Authorization header.
Authorizations
API key authentication. Allowed headers-- "Authorization: ApiKey <novu_secret_key>".
Headers
A header for idempotency purposes
Body
The locale for which translations are being imported
"en_US"
Master JSON object containing all translations organized by workflow identifier
{
"workflows": {
"welcome-email": {
"welcome.title": "Welcome to our platform",
"welcome.message": "Hello there!"
},
"password-reset": {
"reset.title": "Reset your password",
"reset.message": "Click the link to reset"
}
}
}Response
Master translations imported successfully
Overall success status of the import operation
true
Human-readable message describing the import result
"Successfully imported translations for 2 resources: welcome-email, password-reset"
List of resource IDs that were successfully imported
["welcome-email", "password-reset"]List of resource IDs that failed to import
["missing-workflow"]