Skip to content

React App that makes API calls to ChatGPT to translate text to emojis and back to emojis in various languages. Click 💾 to save to localStorage to restore on page refresh

License

Notifications You must be signed in to change notification settings

ArceusX/react-emoji-translate

Repository files navigation

😁 Emoji Translate App💬

Translate emojis and back to human text, in multiple languages **

Live Demo

Emoji Translate

Technologies Used

UI & State

  • React: Front-end library for building interactive components.
  • @chakra-ui/react: Prebuilt, accessible UI components for faster styling.
  • Zustand: Simple state management across components.

API & Translation

  • Axios: HTTP client for API requests.
  • OpenAI: Client library to access ChatGPT translations.
  • Claude: Alternative translation provider.

Other

  • emoji-picker-react: Component for picking emojis as input.

Start

  1. Obtain OpenAI API Key
    Go to OpenAI Playground
    Minimum $5 (Tier 1) to access advanced models

  2. Run Locally

npm install         # Install Dependencies
npm run build       # Create a production build that you can host on a server
npm run dev         # App will run on http://localhost:5173/
  1. Deploy on Netlify via Github

A. Create the project on Github
B. On Netlify, Add new project > Import an existing project. Link the project
C. When creating the project, paste your VITE_OPENAI_API_KEY onto Environment Variables

Demo1 Demo2 Demo3

Folder Structure

components/
  ActionContainer.jsx
  InfoBox.jsx
  LanguageSelector.jsx
  PromptContainer.jsx
  PromptExample.jsx
  ProviderSelector.jsx
  SavedTranslations.jsx
  TemperatureButton.jsx

config/
  app.config.js

lib/
  providers/
    base.js
    claude.js
    openai.js
    
  useStore.js
  useTranslate.js

About

React App that makes API calls to ChatGPT to translate text to emojis and back to emojis in various languages. Click 💾 to save to localStorage to restore on page refresh

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published