Skip to content
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

Set Urdu text direction to right-to-left #2339

Merged
merged 1 commit into from
Jan 19, 2022
Merged

Conversation

injms
Copy link
Contributor

@injms injms commented Jan 19, 2022

What

Sets the i18n.direction key in the Urdu language file to right-to-left.

Why

This key used by application to determine whether the direction that text should be displayed:

ttps://github.com/alphagov/government-frontend/blob/4fab76c1cc871f3da91592a88a1b06f94922d58d/app/helpers/application_helper.rb#L3

Urdu was missing this key, so was defaulting to displaying it left-to-right.

Visual differences

Before:

image

After:
image

From https://www.gov.uk/government/news/innovative-afghan-businesses-receive-uk-aid-grants.ur


⚠️ This repo is Continuously Deployed: make sure you follow the guidance ⚠️

@govuk-ci govuk-ci temporarily deployed to government-f-set-urdu-t-ifr0l5 January 19, 2022 14:19 Inactive
@injms injms marked this pull request as ready for review January 19, 2022 14:30
@injms injms force-pushed the set-urdu-text-direction branch from 962f439 to de780cc Compare January 19, 2022 15:44
@govuk-ci govuk-ci temporarily deployed to government-f-set-urdu-t-ifr0l5 January 19, 2022 15:44 Inactive
@injms
Copy link
Contributor Author

injms commented Jan 19, 2022

Force pushed a no-change amend to kick the CI into running, as Jenkins wasn't doing anything.

@injms injms merged commit 05b9561 into main Jan 19, 2022
@injms injms deleted the set-urdu-text-direction branch January 19, 2022 16:00
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.

4 participants