Translation Management
This endpoint group provides functionality for managing and saving application translations. It allows external systems to update translation files used by the frontend application.
Endpoints
POST /api/rpc (Method: TranslationManagement.saveTranslations)
Description: Saves translations to a file, merging with existing translations.
Request Body:
{ "method": "TranslationManagement.saveTranslations", "params": { "translations": { "en": { "hello_world": "Hello World", "welcome_message": "Welcome!" }, "es": { "hello_world": "Hola Mundo", "welcome_message": "¡Bienvenido!" } } } }Parameters:
Name Type Required Description translationsObject<String, Object<String, String>>Yes An object where keys are language codes (e.g., "en", "es") and values are objects containing key-value pairs for translations in that language. Response:
{ "success": true, "data": { "success": true } }Example (cURL):
curl -X POST https://api.example.com/api/rpc \ -H "Content-Type: application/json" \ -H "X-API-Key: YOUR_API_KEY" \ -d '{ "method": "TranslationManagement.saveTranslations", "params": { "translations": { "en": { "greeting": "Hello", "farewell": "Goodbye" }, "fr": { "greeting": "Bonjour", "farewell": "Au revoir" } } } }'