Skip to content

Latest commit

 

History

History
56 lines (35 loc) · 1.14 KB

README.md

File metadata and controls

56 lines (35 loc) · 1.14 KB

Google Translate API Wrapper

Overview

This R script serves as a Google Translate API wrapper, utilizing the httr library to facilitate text translation between languages. The script prompts users to enter the text, source language, and target language interactively.

Prerequisites

  • R installed on your machine.

  • Install the required R packages:

    install.packages("httr")

How to Run

  1. Clone the Repository:

    git clone https://github.com/real0x0a1/R-Translator.git
  2. Navigate to the Project Directory:

    cd R-Translator
  3. Run the Script:

    • Open R or RStudio.

    • Load and run the script:

      source("translate_script.R")
  4. Follow the Prompts:

    • Enter the text you want to translate when prompted.
    • Enter the source language code (e.g., en) when prompted.
    • Enter the target language code (e.g., es) when prompted.
  5. View the Result:

    • The translated text will be displayed on the console.

Notes

  • Ensure that you have an active internet connection to access the Google Translate API.

Author

  • Ali (Real0x0a1)