-
Notifications
You must be signed in to change notification settings - Fork 2k
i18n: number-formatters – handle callback in geolocateCurrencySymbol
#102538
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
i18n: number-formatters – handle callback in geolocateCurrencySymbol
#102538
Conversation
Calypso Live (direct link)
|
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.
Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.
Comments suppressed due to low confidence (1)
client/boot/common.js:10
- The import path 'path-to-number-formatters' is inconsistent with other files that import setGeoLocation from '@automattic/number-formatters'. Consider updating the import to ensure consistency.
import { setGeoLocation } from 'path-to-number-formatters';
|
Here is how your PR affects size of JS and CSS bundles shipped to the user's browser: App Entrypoints (~75 bytes added 📈 [gzipped]) DetailsCommon code that is always downloaded and parsed every time the app is loaded, no matter which route is used. Sections (~13 bytes added 📈 [gzipped]) DetailsSections contain code specific for a given set of routes. Is downloaded and parsed only when a particular route is navigated to. Legend What is parsed and gzip size?Parsed Size: Uncompressed size of the JS and CSS files. This much code needs to be parsed and stored in memory. Generated by performance advisor bot at iscalypsofastyet.com. |
|
This PR modifies the release build for the following Calypso Apps: For info about this notification, see here: PCYsg-OT6-p2
To test WordPress.com changes, run |
dfabeaf to
99d4dff
Compare
e7e58ca to
87e73b1
Compare
e491948 to
97149e1
Compare
642a186 to
ac7cc06
Compare
97149e1 to
4fac53c
Compare
See PT: pxLjZ-9ME-p2
Part of addressing https://github.com/Automattic/i18n-issues/issues/942
Proposed Changes
geolocateCurrencySymbolini18n-calypsoto accept a callback. This is needed to set the geolocation in thenumber-formatterssingleton used throughout the app.@automattic/number-formattersfor the billing description (as example use to confirm)Alternatives:
i18n-calypsogeolocateCurrencySymbolout ofi18n-calypsoFor the moment, passing a callback should suffice. I am not sure about importing number-formatters in i18n-calypso right now.
Media
Outside US:
From US:
Why are these changes being made?
Part of addressing https://github.com/Automattic/i18n-issues/issues/942
We need to ensure geo-location propagates to the number-formatters instance
Testing Instructions
/purchases/subscriptions/:siteUSprefix, otherwise without (per media above)atlfor a US server)Pre-merge Checklist