Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| SIMPLELOCALIZE_API_KEY | Yes | Your SimpleLocalize API key |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| create_translation_keys | Create translation keys in bulk for a project. This endpoint allows you to create multiple translation keys at once. You can create up to 100 translation keys in a single request. Each key must have a 'key' field, and optionally can include 'namespace' and 'description' fields. Args: keys: List of dictionaries containing key information with fields: - key (required): Translation key (max 500 chars) - namespace (optional): Namespace for the key (max 128 chars) - description (optional): Description for translators (max 500 chars) |
| update_translations | Update translations in bulk with a single request. This endpoint allows you to update multiple translations at once. You can update up to 100 translations in a single request. Each translation must specify the key, language, and text. Namespace is optional. Args: translations: List of dictionaries containing translation information with fields: - key (required): Translation key - language (required): Language code - text (required): Translation text (max 65535 chars) - namespace (optional): Namespace for the key |
| publish_translations | Publish translations to a specified environment. This endpoint publishes translations from the translation editor to hosting environments or from one hosting environment to another. Please note that this endpoint requires authorization and is only available for paid plans. Common environment keys:
Args: environment_key: The environment key to publish to (e.g., "_latest", "_production", or custom key) |
| get_environment_status | Get the current status of a specified environment. This endpoint returns information about the environment including the number of keys, languages, non-empty translations, creation date, and available resources. Args: environment_key: The environment key to check status for (e.g., "_latest", "_production", or custom key) |
| duplicate_translation | Duplicate translations from one key/namespace to another key/namespace. This function copies all translations for a specific key (and optionally namespace) to another key (and optionally namespace). Useful for duplicating translations when creating similar keys or reorganizing translations. Args: from_dict: Source dictionary with fields: - key (required): Source translation key - namespace (optional): Source namespace to_dict: Destination dictionary with fields: - key (required): Destination translation key - namespace (optional): Destination namespace Returns: String message indicating success or failure |
| get_missing_translations | Get a list of translation keys that have missing translations. This endpoint returns translation keys along with their existing translations, focusing on keys that are missing translations in one or more languages. To identify missing translations, the function compares each key against all languages that have at least one translation in the project. Returns: List of dictionaries containing: - key (str): Translation key - namespace (str): Namespace for the key (if applicable) - description (str): Description for translators (if applicable) - translations (List[dict]): List of existing translations with fields: - language (str): Language code - text (str): Translation text |
| get_translations_for_keys | Get translations for specific translation keys. This endpoint fetches translations for a list of specified keys, optionally filtered by namespace. Returns all available translations for each key across all languages in the project. Args: keys: List of translation keys to fetch translations for (required) namespace: Optional namespace to filter the translations (if not provided, fetches from all namespaces) Returns:
List of dictionaries containing:
- key (str): Translation key
- namespace (str): Namespace for the key
- translations (List[dict]): List of translations with fields:
- language (str): Language code |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |