Skip to content

Commit

Permalink
New version 1.0.5 released
Browse files Browse the repository at this point in the history
  • Loading branch information
raj-squarebits authored Nov 9, 2022
1 parent f8b824a commit 50102ce
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 6 deletions.
19 changes: 15 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,23 @@ You can use these methods anywhere in your project and these will provide transl
// use translated map here
}

# Get Translations Of JSON Object

DevNagriTranslationSdk.getTranslationOfJSON(jsonObject){ translations ->
// use translated json object here
# Get Translations Of JSON Object
# 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

val jsonObject = JSONObject()
jsonObject.put("sample_key", "Sample Text")
jsonObject.put("sample_key_one", "Sample Text1")

val ignoreKeys: ArrayList<String> = ArrayList()
ignoreKeys.add("_id")
ignoreKeys.add("unit_id")

DevNagriTranslationSdk.getTranslationOfJSON(jsonObject, ignoreKeys) {
//use translated JSON Object here
}


# Usage

Expand Down
Binary file modified android-sdk.aar
Binary file not shown.
2 changes: 1 addition & 1 deletion jitpack.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
install:
- FILE="-Dfile=android-sdk.aar"
- mvn install:install-file $FILE -DgroupId=com.github.DevnagriAI -DartifactId=android-sdk -Dversion=1.0.4 -Dpackaging=aar -DpomFile=pom.xml
- mvn install:install-file $FILE -DgroupId=com.github.DevnagriAI -DartifactId=android-sdk -Dversion=1.0.5 -Dpackaging=aar -DpomFile=pom.xml
jdk:
- openjdk11
before_install:
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.github.DevnagriAI</groupId>
<artifactId>android-sdk</artifactId>
<version>1.0.4</version>
<version>1.0.5</version>
<!-- <packaging>aar</packaging>-->
<dependencies>
<dependency>
Expand Down

0 comments on commit 50102ce

Please sign in to comment.