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
Updated NavigationRoute.language to take a Locale #1025
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now that we use only Locale
across the SDK I'm wondering if we should remove inferDeviceLanguage
and getNonEmptyLanguage
from LocaleUtils
. From my experience utility classes become a drawer easily. What do you think?
@@ -282,8 +282,8 @@ public Builder alternatives(@Nullable Boolean alternatives) { | |||
* Languages</a> | |||
* @since 0.5.0 | |||
*/ | |||
public Builder language(String language) { | |||
directionsBuilder.language(new Locale(language)); | |||
public Builder language(Locale language) { |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
@Guardiola31337 we still use cc @danesfeder what do you think? For consistency use Locale for |
140aea1
to
1b7888d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@devotaaabel this looks good for the given ticket. Let's continue to be aware of aligning the SDK around Locale
since that's the decision we are making here cc @Guardiola31337
1b7888d
to
afb49cd
Compare
Closes #1024