Skip to content

Commit 6461e10

Browse files
Sample project Updated with SDK improvment
1 parent a2ee0d4 commit 6461e10

File tree

75 files changed

+11942
-627
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+11942
-627
lines changed

README.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ For auto update strings translations you can set time in minutes.
4949

5050
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
5151
DevnagriSDK.shared.initSdk(apiKey: String, updateStringTime:Int?) { isInitialized, message in
52-
52+
//Reload or update UI here...
5353
}
5454
}
5555
@@ -58,9 +58,10 @@ For auto update strings translations you can set time in minutes.
5858

5959
# Change Language
6060
In case you don't want to use the system language, you can set a different language in the updateAppLocale method. The language code (locale) needs to be present in a release from Devnagri.
61-
61+
//You can start loader here...
6262
DevnagriSDK.shared.updateAppLocale(code: "hi") { isUpdated, message in
63-
//do here...
63+
//You can stop loader here...
64+
//Reload or update UI here...
6465
}
6566

6667
Please note that you will see the english text back if your device language is english and you have not set any specific language for the SDK. To get the translation in Hindi, Please update app locale to Hindi as per above method.
@@ -70,10 +71,6 @@ In case you want to know which language code currently used by application.
7071

7172
let currentLanguageCode = DevnagriSDK.shared.getCurrentApplicationLanguageCode()
7273

73-
# Refresh Subscription Details
74-
if you want to refresh sdk subscription details.
75-
76-
DevnagriSDK.shared.refreshSubscriptionDetail()
7774

7875
# Get Supported Languages
7976
You can get supported languages for the SDK using this method. This will return hashmap of language name and language code

Sample-project/.DS_Store

0 Bytes
Binary file not shown.

Sample-project/DevnagriSdk_demo_project.xcodeproj/xcuserdata/vikram.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist

Lines changed: 0 additions & 6 deletions
This file was deleted.

Sample-project/DevnagriSdk_demo_project/AppDelegate.swift

Lines changed: 0 additions & 39 deletions
This file was deleted.

Sample-project/DevnagriSdk_demo_project/Base.lproj/Main.storyboard

Lines changed: 0 additions & 215 deletions
This file was deleted.

Sample-project/DevnagriSdk_demo_project/DevnagriDemoVC.swift

Lines changed: 0 additions & 90 deletions
This file was deleted.

Sample-project/DevnagriSdk_demo_project/SupportingLanguageLIstVC.swift

Lines changed: 0 additions & 101 deletions
This file was deleted.

Sample-project/DevnagriSdk_demo_project/en.lproj/Localizable.strings

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)