-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add setLocale
method
#478
Add setLocale
method
#478
Conversation
e8c2393
to
5d53194
Compare
Hi @batadamnjanovic, what is your idea in adding setter method, because you can easily change the device's language if you want to test locales? |
Hi @hborisoff, this is similar to Web: Leanplum/Leanplum-JavaScript-SDK#140 and iOS: Leanplum/Leanplum-iOS-SDK#467. We have predefined language codes that we need to send with every event. |
Hi @hborisoff, thanks for the collaboration. Do you maybe know when will be the next release if it's not a secret? It will mean a lot to us to organise some things in this sprint. Thanks! |
* Enable custom locale * Update setLocale method comment
@batadamnjanovic Yesterday I was working on a release 5.8.2 containing a bug fix and included your change too. |
* Enable custom locale * Update setLocale method comment
* Release 5.9.0-beta1 * Use new URL for artifactory instance * Release 5.9.0-beta2 * Release 5.9.0-beta3 * Try fix path for artifactory * Release 5.9.0-beta4 * try fix build * Release 5.9.0-beta5 * Release and fix build 5.9.0-beta6 * Add Leanplum.setLocale (#478) * Enable custom locale * Update setLocale method comment * Validate advertising id for zero value (#479) * Release 5.9.0-beta7 * Add exception listener to Log class (#481) * Release 5.9.0-beta8 * Release 5.9.0 Co-authored-by: Bratislav Damnjanovic <damnjanovic.bata@gmail.com>
Introduce
setLocale(locale: String)
in order to set a custom locale string.Problem with this approach is that
setLocale(...)
needs to be called beforeLeanplum.start(...)
method.