Skip to content

Commit

Permalink
- Added modular approach
Browse files Browse the repository at this point in the history
  • Loading branch information
raj-squarebits authored Nov 14, 2022
1 parent 54853fd commit 2aab2bd
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,15 @@ You can use these methods anywhere in your project and these will provide transl
//use translated JSON Object here
}


# For Modular Approach
- Please add DevNagriSDK dependency in each module level gradle file.
- If you have multiple modules in your application,
then in each module's base activity override the below method.

override fun getDelegate(): AppCompatDelegate {
return DevNagriTranslationSdk.fetchAppDelegate(this, super.getDelegate())
}

# Usage

Translations can be used as usual in layouts:
Expand Down

0 comments on commit 2aab2bd

Please sign in to comment.