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

Fallback Locale #2611

Merged
merged 3 commits into from Jan 23, 2024
Merged

Fallback Locale #2611

merged 3 commits into from Jan 23, 2024

Conversation

mazenchami
Copy link
Contributor

Please verify the following:

  • yarn test jest tests pass with new tests, if relevant
  • README.md has been updated with your changes, if relevant

Describe your PR

#2414

@@ -34,6 +34,11 @@ jest.mock("i18n-js", () => ({
},
}))

jest.mock("expo-localization", () => ({
...jest.requireActual("expo-localization"),
getLocales: () => [{ languageTag: "en-US", textDirection: "ltr" }],
Copy link
Contributor Author

Choose a reason for hiding this comment

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

although expo-localization returns getLocales, it returns an empty array. setting a default here

@mazenchami mazenchami linked an issue Jan 19, 2024 that may be closed by this pull request
Copy link
Contributor

@frankcalise frankcalise left a comment

Choose a reason for hiding this comment

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

looks good, thanks for this!

@frankcalise frankcalise merged commit 0f2892a into master Jan 23, 2024
1 check passed
@frankcalise frankcalise deleted the mazenchami/fix-local-setting branch January 23, 2024 15:53
infinitered-circleci pushed a commit that referenced this pull request Jan 23, 2024
@infinitered-circleci
Copy link

🎉 This PR is included in version 9.4.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

System locales fail in non US countries
3 participants