Skip to content

Format Urdu percentages with a trailing % sign#518

Merged
rochlefebvre merged 3 commits into
Shopify:mainfrom
stephen-last:slast-urdu-trailing-percent
Jul 8, 2026
Merged

Format Urdu percentages with a trailing % sign#518
rochlefebvre merged 3 commits into
Shopify:mainfrom
stephen-last:slast-urdu-trailing-percent

Conversation

@stephen-last

@stephen-last stephen-last commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Relates to https://github.com/shop/issues-international/issues/2953

Urdu (ur) percentages were rendering with a leading % (%2) on the shopify.com pricing page. They should use a trailing % (2%), the same as Hebrew.

Hebrew already has an override for this in Worldwide::Numbers#percentage_specification. This just adds ur to that same path (via a new TRAILING_PERCENT_SIGN_LOCALES constant) and adds ur / ur-PK test cases. ar / ku / tr are intentionally left as leading %.

Also cuts release 1.25.3 per the repo's per-PR convention (VERSION + Gemfile.lock + dated CHANGELOG entry).

Urdu (ur) percentages were rendering with a leading % sign in numeric
layout order (e.g. "%2"), because CLDR records ur as right-to-left with a
trailing % sign in character order, which the formatter interprets as a
leading sign in layout order.

In practice Urdu uses a trailing % sign in numeric layout order ("2%"),
the same as Hebrew. Extend the existing Hebrew override to cover ur via a
new TRAILING_PERCENT_SIGN_LOCALES constant.

This fixes shopify.com pricing plan-card feature lines like "%2 تھرڈ پارٹی
پیمنٹ فراہم کنندگان" rendering the percent on the wrong side for ur-PK.
Follow the repo release convention: bump VERSION and Gemfile.lock, and
move the changelog entry from [Unreleased] into a dated [1.25.3] section.
@rochlefebvre rochlefebvre force-pushed the slast-urdu-trailing-percent branch from 30dbfdd to 21798a6 Compare July 8, 2026 12:16
@rochlefebvre rochlefebvre merged commit 0c9d9fb into Shopify:main Jul 8, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants