From 664d09b9f651dee1b22809d71734a86270ef071c Mon Sep 17 00:00:00 2001 From: Raj Soni <77340696+raj-squarebits@users.noreply.github.com> Date: Fri, 25 Nov 2022 13:39:51 +0530 Subject: [PATCH] version 1.1.1 --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index c9424bf..d62a3c8 100644 --- a/README.md +++ b/README.md @@ -43,11 +43,11 @@ Initialise the SDK in your application class and add the API_KEY from DevNagri. val syncTime:Int = 60 //In minutes - val strings = R.string::class.java.fields.map { it.name } - val arrays = R.array::class.java.fields.map { it.name } - val plurals = R.plurals::class.java.fields.map { it.name } + val strings = R.string::class.java.fields + val arrays = R.array::class.java.fields + val plurals = R.plurals::class.java.fields - // passing arrays and plurals in init method is optional here, pass them only if defined in strings.xml file + // passing fields and plurals in init method is optional here, pass them only if defined in strings.xml file DevNagriTranslationSdk.init(applicationContext, "API_KEY" ,syncTime, strings, arrays, plurals, initListener = {isInitialized, error -> })