Skip to content
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

Merged
merged 2 commits into from
Dec 15, 2021

Conversation

batadamnjanovic
Copy link
Contributor

Introduce setLocale(locale: String) in order to set a custom locale string.

Problem with this approach is that setLocale(...) needs to be called before Leanplum.start(...) method.

@hborisoff
Copy link
Contributor

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?

@batadamnjanovic
Copy link
Contributor Author

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.

@hborisoff hborisoff merged commit 20c4e91 into Leanplum:master Dec 15, 2021
@batadamnjanovic
Copy link
Contributor Author

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!

hborisoff pushed a commit that referenced this pull request Dec 16, 2021
* Enable custom locale

* Update setLocale method comment
@hborisoff
Copy link
Contributor

@batadamnjanovic Yesterday I was working on a release 5.8.2 containing a bug fix and included your change too.

hborisoff pushed a commit that referenced this pull request Jan 24, 2022
* Enable custom locale

* Update setLocale method comment
hborisoff added a commit that referenced this pull request Jan 24, 2022
* 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants