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] Add default temperature unit to the locale #24059

Merged
merged 4 commits into from
Aug 25, 2023

Conversation

behenate
Copy link
Member

@behenate behenate commented Aug 22, 2023

Why

We want to add a temperature unit field which will return the temperature unit used in the region
ENG-6859

How

On iOS the unit is based on the current settings in the region tab of the settings app (note: settings values are ignored in iOS simulator so any testing in the future should be done on a physical device)
On Android and web a list of regions which use fahrenheit is used and compared with the current device region.

Test Plan

Tested in Bare Expo on Android 13, iOS 16 and web

@behenate behenate requested review from tsapeta and lukmccall August 22, 2023 11:01
@behenate behenate self-assigned this Aug 22, 2023
@expo-bot expo-bot added the bot: suggestions ExpoBot has some suggestions label Aug 22, 2023
Co-authored-by: Expo Bot <34669131+expo-bot@users.noreply.github.com>
@expo-bot expo-bot added bot: passed checks ExpoBot has nothing to complain about and removed bot: suggestions ExpoBot has some suggestions labels Aug 22, 2023
Copy link
Contributor

@aleqsio aleqsio left a comment

Choose a reason for hiding this comment

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

Think this looks good, thanks!

Copy link
Member

@amandeepmittal amandeepmittal left a comment

Choose a reason for hiding this comment

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

Thank you for updating the docs for this new addition!

@behenate behenate merged commit 58fd9d6 into main Aug 25, 2023
@behenate behenate deleted the @behenate/add-temperature-to-localization branch August 25, 2023 10:58
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
Development

Successfully merging this pull request may close these issues.

6 participants