write_po
Create or update translation entries in a PO file, then format it with powrap to ensure correct Gettext formatting.
Instructions
Create or update entries in a PO file and format it with powrap.
Responses:
200 (Success): Successful Response
Content-Type:
application/jsonResponse Properties:
success: Whether the write operation was successful.
message: Status message.
Example:
{
"success": true,
"message": "string"
}422: Validation Error
Content-Type:
application/jsonResponse Properties:
Example:
{
"detail": [
"unknown_type"
]
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entries | Yes | List of entries to write to the PO file. | |
| file_path | Yes | Absolute path to the .po file to write. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | Yes | Status message. | |
| success | Yes | Whether the write operation was successful. |