Skip to content
This repository has been archived by the owner on Jun 16, 2022. It is now read-only.

Regions v3 regression, Intl polyfill #2332

Draft
wants to merge 210 commits into
base: develop
Choose a base branch
from

Conversation

ofreyssinet-ledger
Copy link
Contributor

@ofreyssinet-ledger ofreyssinet-ledger commented Mar 24, 2022

  • Put region settings back in the general settings UI.
  • Reimplement of "searchable" list in makeGenericSelectScreen.tsx, this was a regression of v3 as it was implemented in the .js version already.
  • Fix regression in components using the incorrect locale (things that were implemented in V2 but not in V3 components), used this PR as a base LL-6732 regions, dates, time and currencies #1941.
  • Fix remaining incorrect uses of useLocale() when doing number/date formatting (instead, using localeSelector), see following point for explanation.
  • Rename useLocale() (in Locale.js) to useTranslationLocale() & document it to avoid confusions & uses in wrong context (it should be used only for handling translatable content, not for number & date formatting).
  • Ensure Intl polyfill (for Hermes) are imported and working for all selectable regions. (with a small patch to avoid this issue TypeError caused by wrong data format in intl-datetimeformat/locale-data/haw.js formatjs/formatjs#3503)
  • ⚠️ DX is bad because importing all locale data at each reload takes very long
  • Need to revert this change in live-common LedgerHQ/ledger-live-common@6b9efb5 as it prevents formatting of currency (it would work without this change thanks to the polyfill)

Type

Bug fix

Context

Parts of the app affected / Test plan

LFBarreto and others added 30 commits October 20, 2021 09:15
* Remove useless dependency to hw-app-btc

* Also remove hw-app-eth and hw-app-xrp
* Use design system for Checkbox and Swich components

* Removed useless @flow marker on checkbox file
* Rebrand footer navigation

* remove log
LFBarreto and others added 22 commits March 20, 2022 23:44
* LIVE-1667 Cosmos Select Amount to undelegate page updated

* LL-1667 some cosmos transaction pages updated

* LL-1667 SafeAreaView replaced with View in cosmos 01-Started.js
* LL-1669 some polkadot transaction pages updated

* LL-1669 ClearNominations and Nominate pages improved and fixed

* LL-1669 console log removed
* (V3): boosty perfs

* enable hermes for ios and polyfill intl

* remove obsolete jsc flags

* (Onboarding): fixes for small screens + some other issues

Co-authored-by: Julien Elbaz <elbywan@hotmail.com>
* remove unused

* update margin top
That's because useLocale returns the language locale and not the locale used for number & date formatting (they are separated)
@ofreyssinet-ledger ofreyssinet-ledger self-assigned this Mar 24, 2022
@ofreyssinet-ledger ofreyssinet-ledger changed the title Regions v3 regression Regions v3 regression, Intl polyfill Mar 28, 2022
Base automatically changed from LL-7742 to release/v3.0.x March 29, 2022 12:28
Base automatically changed from release/v3.0.x to develop April 22, 2022 10:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet