apply_tool
Translates and applies translations to iOS/macOS Xcode String Catalog files (.xcstrings) for specified target languages to support app localization.
Instructions
MCP tool to translate and apply translations to xcstrings file.
Args:
file_path (str): Path to the .xcstrings file
target_language (str): Target language code
app_description (str): Optional description of the app for better translation context
Returns:
str: Application result with translated keys or error message
Input Schema
Name | Required | Description | Default |
---|---|---|---|
app_description | No | ||
file_path | Yes | ||
target_language | Yes |
Input Schema (JSON Schema)
{
"properties": {
"app_description": {
"default": "",
"title": "App Description",
"type": "string"
},
"file_path": {
"title": "File Path",
"type": "string"
},
"target_language": {
"title": "Target Language",
"type": "string"
}
},
"required": [
"file_path",
"target_language"
],
"type": "object"
}