translate_key_tool
Translate a specific key in iOS/macOS Localizable.xcstrings files to multiple target languages using Xcode String Catalogs for localization management.
Instructions
MCP tool to translate a specific key to multiple target languages and apply translations.
Args:
file_path (str): Path to the .xcstrings file
key (str): The specific key to translate
target_languages (str): Comma-separated list of target language codes (e.g., "es,fr,de")
app_description (str): Optional description of the app for better translation context
Returns:
str: Translation results or error message
Input Schema
Name | Required | Description | Default |
---|---|---|---|
app_description | No | ||
file_path | Yes | ||
key | Yes | ||
target_languages | Yes |
Input Schema (JSON Schema)
{
"properties": {
"app_description": {
"default": "",
"title": "App Description",
"type": "string"
},
"file_path": {
"title": "File Path",
"type": "string"
},
"key": {
"title": "Key",
"type": "string"
},
"target_languages": {
"title": "Target Languages",
"type": "string"
}
},
"required": [
"file_path",
"key",
"target_languages"
],
"type": "object"
}