Skip to content

Commit

Permalink
Version 1.0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
raj-squarebits authored Dec 8, 2022
1 parent 07e2142 commit fd4be9d
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,17 +175,18 @@ You can use these methods anywhere in your project and these will provide transl

// This method is used to convert the entire JSON object to requested language
// ignoreKeys -> Send a list of strings that you want to ignore during the conversion process
JSONObject json = new JSONObject();
json.put("Name", "DevNagri SDK");
json.put("Language", "Java");
devNagriTranslationSdk.getTranslationOfJSON(jsonObjectValue,
ignoreKeys,
new GenericCallback<JSONObject>() {
@Override
public void onCallback(JSONObject translatedJsonObject) {
//Here you find translated JSON Object
}
});

JSONObject json = new JSONObject();
json.put("Name", "DevNagri SDK");
json.put("Language", "Java");
devNagriTranslationSdk.getTranslationOfJSON(jsonObjectValue,
ignoreKeys,
new GenericCallback<JSONObject>() {
@Override
public void onCallback(JSONObject translatedJsonObject) {
//Here you find translated JSON Object
}
});
# For Modular Approach
- Please add DevNagriSDK dependency in each module level gradle file.
Expand Down

0 comments on commit fd4be9d

Please sign in to comment.