We're using @shopify/react-i18n to format various text elements in our application. We have encountered a specific need to format percentage ranges in a concise and readable manner.
Type
[x] New feature
[ ] Changes to existing features
Motivation
What inspired this feature request? What problems were you facing,
or what else makes you think this should be in quilt?
We have a requirement to format ranges of tax rates as 5.25-10%. Currently, we do not have a utility method in @shopify/react-i18n to handle this specific formatting. Adding this feature would streamline our code and ensure consistency across our application.
Area
[ ] Add any relevant Area: <area> labels to this issue
Scope
Is this issue related to a specific package?
[x] Tag it with the Package: <package_name> label.
Is it related to a new package?
[ ] Tag it with the New package Label
Checklist
[x] Please delete the labels section before submitting your issue
[x] I have described this issue in a way that is actionable (if possible)
Overview
We're using
@shopify/react-i18n
to format various text elements in our application. We have encountered a specific need to format percentage ranges in a concise and readable manner.Type
Motivation
We have a requirement to format ranges of tax rates as
5.25-10%
. Currently, we do not have a utility method in@shopify/react-i18n
to handle this specific formatting. Adding this feature would streamline our code and ensure consistency across our application.Area
Area: <area>
labels to this issueScope
Is this issue related to a specific package?
Package: <package_name>
label.Is it related to a new package?
New package
LabelChecklist