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

[localization] Fix two specific platform issues for Android and Web #22003

Merged
merged 4 commits into from
Apr 17, 2023

Conversation

aleqsio
Copy link
Contributor

@aleqsio aleqsio commented Apr 5, 2023

Why

Closes: #21414

I'm unable to replicate it since it can't really happen in production – Android doesn't let you set a locale without a country.
This should fix the pre-launch report.

Closes: #22009
On web we now use resolvedOptions instead of navigator.languages for calendars.

How

Test Plan

Tested in bare expo if it doesn't break for some weird reason.

Checklist

@aleqsio aleqsio requested a review from EvanBacon as a code owner April 5, 2023 15:23
@aleqsio aleqsio requested review from tsapeta and removed request for EvanBacon April 5, 2023 15:23
@expo-bot expo-bot added the bot: suggestions ExpoBot has some suggestions label Apr 5, 2023
Copy link
Member

@tsapeta tsapeta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few nitpicks:

  • CI jobs are failing
  • Missing changelog entry
  • Can we log when the exception occurred?

@aleqsio aleqsio changed the title Try/catch localization in case of error [localization] Fix two specific platform issues for Android and Web Apr 11, 2023
@expo-bot expo-bot added bot: passed checks ExpoBot has nothing to complain about and removed bot: suggestions ExpoBot has some suggestions labels Apr 11, 2023
@aleqsio aleqsio merged commit 9d7b0c1 into main Apr 17, 2023
@aleqsio aleqsio deleted the @aleqsio/trycatch-localization branch April 17, 2023 10:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot: passed checks ExpoBot has nothing to complain about
Projects
None yet
4 participants