i18n: number-formatters – handle callback in geolocateCurrencySymbol#102538
i18n: number-formatters – handle callback in geolocateCurrencySymbol#102538chriskmnds merged 2 commits intotrunkfrom
geolocateCurrencySymbol#102538Conversation
Jetpack Cloud live (direct link)
Automattic for Agencies live (direct link)
|
There was a problem hiding this comment.
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