Skip to content

This is a simple R function that uses the `httr` library to translate text using the Google Translate API.

Notifications You must be signed in to change notification settings

real0x0a1/R-Translator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

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)

About

This is a simple R function that uses the `httr` library to translate text using the Google Translate API.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages