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"
]
}Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"file_path": "<file_path>",
"entries": "<entries>"
},
"name": "write_po"
}
}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. |