i18n: Refactor calypso-products percentages to use numberFormat#100849
i18n: Refactor calypso-products percentages to use numberFormat#100849chriskmnds merged 1 commit intotrunkfrom
numberFormat#100849Conversation
Jetpack Cloud live (direct link)
Automattic for Agencies live (direct link)
|
|
Here is how your PR affects size of JS and CSS bundles shipped to the user's browser: App Entrypoints (~37 bytes added 📈 [gzipped]) DetailsCommon code that is always downloaded and parsed every time the app is loaded, no matter which route is used. Sections (~140 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. Async-loaded Components (~140 bytes added 📈 [gzipped]) DetailsReact components that are loaded lazily, when a certain part of UI is displayed for the first time. 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 |
| 'Print USPS and DHL labels right from the WooCommerce desktop and save up to %(discountPercent)s instantly. WooCommerce Shipping is free and saves you time and money.', | ||
| { | ||
| args: { | ||
| discountPercent: numberFormat( 0.9, { | ||
| numberFormatOptions: { style: 'percent' }, | ||
| } ), | ||
| }, | ||
| } |
There was a problem hiding this comment.
Hi @chriskmnds - I've taken a look at these three products in A4A and the percentages seem to render as they should. In the case of Accommodations Bookings it looks like the A4A team has removed those particular bullet points, but the others are still there.
You can test this yourself by doing yarn start-a8c-for-agencies on this branch and then navigating to http://agencies.localhost:3000/marketplace/products.
|
This Pull Request is now available for translation here: https://translate.wordpress.com/deliverables/17285377 Some locales (Hebrew) have been temporarily machine-translated due to translator availability. All other translations are usually ready within a few days. Untranslated and machine-translated strings will be sent for translation next Monday and are expected to be completed by the following Friday. Thank you @chriskmnds for including a screenshot in the description! This is really helpful for our translators. |
5e8d9f4 to
9e24f2f
Compare
Part of addressing https://github.com/Automattic/i18n-issues/issues/949
Proposed Changes
Refactors calypso-products package to use numberFormat for percentage values.
Several cases that involve plan features, like transaction fees, and other translations where percentages are hardcoded in strings
Media
Transaction fees Before/After in AR:
Why are these changes being made?
Part of addressing https://github.com/Automattic/i18n-issues/issues/949
Testing Instructions
For transaction fees:
/start/plansand open comparison gridPre-merge Checklist