Advertisement
shyhjie

Untitled

Aug 11th, 2019
618
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Kotlin 0.71 KB | None | 0 0
  1. LokaliseSDK.init(
  2.             "da59dd12e1879537dd4ee637ce9b13c47491867c",
  3.             "297237175c63d3664dc267.31280313", this
  4.         )
  5.         LokaliseSDK.setPreRelease(BuildConfig.DEBUG)
  6.  
  7.         // Add this only if you want to use pre-release bundles
  8.         // LokaliseSDK.setPreRelease(true)
  9.  
  10.         /*LokaliseSDK.addCallback(object: LokaliseCallback{
  11.             override fun onTranslationsUpdated(p0: Long, p1: Long) {
  12.                 println(">>>>> update $p0, $p1")
  13.             }
  14.         })*/
  15.  
  16.         // Fetch the latest translations from Lokalise (can be called anywhere)
  17.         LokaliseSDK.updateTranslations()
  18.  
  19.  
  20.         //ko_KR, zh_CN, zh_TW, en_US
  21.         //LokaliseSDK.setLocale("zh", "CN")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement