Coder Social home page Coder Social logo

dnachavez / nextjs-gtranslation-app Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 2.0 34 KB

This project is a web-based translation app built using Next.js and Chakra UI. It uses the Google Translate API provided by Pawan.Krd, allowing users to translate text from one language to another.

Home Page: https://gtranslation.netlify.app

License: MIT License

JavaScript 59.70% CSS 40.30%
google-translate-free-api nextjs

nextjs-gtranslation-app's Introduction

Translation App with Next.js, Chakra UI, and Google Translate API

This project is a web-based translation app built using Next.js and Chakra UI. It uses the Google Translate API provided by Pawan.Krd, allowing users to translate text from one language to another.

Features

  • Clean and intuitive user interface designed with Chakra UI.
  • Translation of text between various languages using the Google Translate API.
  • Language swap feature for quickly switching the 'from' and 'to' languages.

How to Use

To translate text, enter your text in the text area and select the 'from' and 'to' languages from the drop-down menus. Then, click the 'Translate' button to get your translation.

You can also use the swap icon button to swap the 'from' and 'to' languages. If a translation has already been made, this will also trigger a new translation using the swapped languages and the previously translated text.

Google Translate API

This app uses the Google Translate API provided by Pawan.Krd. You can use this API by sending an HTTP GET request to the following endpoint:

https://api.pawan.krd/gtranslate

Query Parameters

  • from: The language of the text query.
  • to: The language you want to translate to.
  • text: The text or paragraph you want to translate.

You can find the language codes here.

Example

GET https://api.pawan.krd/gtranslate?from=en&to=ckb&text=hello

Response

You will get a JSON response like this:

{"status":true,"translated":"سڵاو","time":60}

For more information, visit https://discord.pawan.krd/.

Running the Project Locally

First, clone the repository:

git clone https://github.com/dnachavez/nextjs-gtranslation-app.git

Then, navigate to the project directory and install the dependencies:

cd nextjs-gtranslation-app
npm install

Finally, run the development server:

npm run dev

Open http://localhost:3000 in your browser to see the result.

Contributing

We welcome contributions to this project. Please feel free to submit issues and pull requests.

License

This project is licensed under the MIT License.

nextjs-gtranslation-app's People

Contributors

dnachavez avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.