### Clone Repository and Install Dependencies Source: https://github.com/yashasewi/json-translator/blob/main/README.md Instructions for cloning the project repository and installing necessary Python packages using pip. This ensures all required libraries for the JSON Translator tool are available. ```bash git clone cd json-translator pip install -r requirements.txt ``` ```bash git clone cd json-translator pip install . ``` -------------------------------- ### Run JSON Translator (Interactive TUI) Source: https://github.com/yashasewi/json-translator/blob/main/README.md How to launch the JSON Translator tool in its interactive Text User Interface (TUI) mode. This mode guides users through file selection, language choices, and translation preview. ```bash python translate_json.py ``` ```bash json-translator ``` -------------------------------- ### Example JSON Input Structure Source: https://github.com/yashasewi/json-translator/blob/main/README.md An example of the expected JSON file format for translation. The tool processes files containing string values, preserving the structure of nested objects and arrays. ```json { "welcome": "Welcome to our application", "buttons": { "save": "Save", "cancel": "Cancel" }, "messages": { "success": "Operation completed successfully" } } ``` -------------------------------- ### Run JSON Translator with Command Line Arguments Source: https://github.com/yashasewi/json-translator/blob/main/README.md Demonstrates how to use the JSON Translator tool via command-line arguments for non-interactive translation. It covers specifying input files, output directories, target languages, and API keys. ```bash python translate_json.py --input --output --target --key ``` ```bash json-translator --input --output --target --key ``` -------------------------------- ### API Authentication: Google Translate API Key Source: https://github.com/yashasewi/json-translator/blob/main/README.md Configuration method for authenticating with the Google Translate API using an API key. The key should be stored in a `.env` file for secure access. ```bash GOOGLE_TRANSLATE_API_KEY="your-api-key-here" ``` -------------------------------- ### List Supported Language Codes Source: https://github.com/yashasewi/json-translator/blob/main/README.md Command to display all available language codes supported by the Google Translate API integration. This is useful for users to know which languages they can translate into. ```bash python translate_json.py --list-languages ``` -------------------------------- ### API Authentication: Google Cloud Service Account Source: https://github.com/yashasewi/json-translator/blob/main/README.md Configuration method for authenticating with the Google Translate API using a service account. This involves setting the GOOGLE_APPLICATION_CREDENTIALS environment variable to the path of the downloaded JSON credentials file. ```bash GOOGLE_APPLICATION_CREDENTIALS="/path/to/credentials.json" ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.