Skip to content

A multilingual chat app integrated with Firebase and Google translate API.

Notifications You must be signed in to change notification settings

amansahil/FireChat

Repository files navigation

FireChat

FireChat is a chat app integrated with Firebase and Google translate API. Users can enter their name, choose their preferred language and join a chat room. No matter what language other users use, the text will be translated to the users selected language enabling a multi-lingual platform.

Setting up firebase

  1. Go to firebase.google.com and click on go to console

screen shot 2018-06-09 at 11 11 38 pm

  1. Click on add project in the console and create a new project

screen shot 2018-06-09 at 11 11 53 pm

  1. After being redirected, go to database from the nav bar and click on get started with real time database.Start in test mode

screen shot 2018-06-09 at 11 12 46 pm

  1. Go to project overview from the nav bar and select add firebase to your android app

screen shot 2018-06-09 at 11 13 15 pm

  1. Enter your android package name which is available in AndroidManifest.xml

screen shot 2018-06-09 at 11 17 48 pm

screen shot 2018-06-09 at 11 16 21 pm

  1. Download the google-services.json file and place it in your app directory

screen shot 2018-06-09 at 11 18 10 pm

screen shot 2018-06-09 at 11 20 15 pm

For more info check out - https://firebase.google.com/docs/android/setup

Setting up Google Translate API

  1. Go to cloud.google.com and click on go to console

  2. Create a new project and select API & Services from the sliding navigation bar

screen shot 2018-06-09 at 11 21 24 pm

  1. Click on Enable Services and API

screen shot 2018-06-09 at 11 21 43 pm

  1. Search for Google Translate API and enable it

screen shot 2018-06-09 at 11 23 29 pm

  1. Go back and go to credentials

screen shot 2018-06-09 at 11 21 43 pm copy

  1. Click on create credentials and click on API key

screen shot 2018-06-06 at 2 21 04 am

  1. Replace the generated API key for the API_KEY placeholder in MenuActivity.java on Line 27 and in ChatActivity.java on Line 34

For more info check out - https://cloud.google.com/translate/

What you get

Initial Screen: User enters their name and selects their preffered language

screen shot 2018-06-10 at 2 42 25 pm

Menu Screen: User selects from a variety of chat rooms and will get a hello message in their selected language

screen shot 2018-06-10 at 2 43 01 pm

Chat Screen: User can chat with a global audience and receive messages translated in their selected language

screen shot 2018-06-10 at 2 43 11 pm

About

A multilingual chat app integrated with Firebase and Google translate API.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages