Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
iammannan committed Aug 18, 2018
2 parents 103e1ba + 4c8c2a7 commit 3883c0b
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# TranslateAPI
Simple Java library to translate your text using Google Translate without using of API KEY

# Screenshot
![alt text](https://raw.githubusercontent.com/iammannan/TranslateAPI/master/demo2.png)

# Download

* Step 1. Add it in your root build.gradle at the end of repositories:
```java
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
```
* Step 2. Add the dependency
```java
dependencies {
implementation 'com.github.iammannan:TranslateAPI:1.0'
}
```
* Full Code - Example
```java
TranslateAPI translateAPI = new TranslateAPI(
Language.AUTO_DETECT, //Source Language
Language.TAMIL, //Target Language
"Your Text"); //Query Text

translateAPI.setTranslateListener(new TranslateAPI.TranslateListener() {
@Override
public void onSuccess(String translatedText) {
Log.d(TAG, "onSuccess: "+translatedText);
textView.setText(translatedText);
}

@Override
public void onFailure(String ErrorText) {
Log.d(TAG, "onFailure: "+ErrorText);
}
});
```
![alt text](https://raw.githubusercontent.com/iammannan/TranslateAPI/master/demo1.png)

Binary file added demo1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added demo2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 3883c0b

Please sign in to comment.