Skip to content

Commit

Permalink
Set i18n.direction to rtl for languages DR, PA-UR, PS
Browse files Browse the repository at this point in the history
Corresponding ticket: https://govuk.zendesk.com/agent/tickets/4398151.

These languages are right-to-left (RTL) in Whitehall, but not in this
frontend app:
https://github.com/alphagov/whitehall/blob/bcda05ec43d87b3bec1541e644c1373bafa2a3e8/config/locales/ps.yml#L315-L316

This will ensure pages such as this one are rendered correctly:
https://www.gov.uk/guidance/coronavirus-covid-19-taxis-and-phvs.ps

How the page should look (with different language with correct cofig):
https://www.gov.uk/guidance/coronavirus-covid-19-taxis-and-phvs.ar
  • Loading branch information
Bill Franklin committed Dec 24, 2020
1 parent 53de089 commit cba752f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/locales/dr.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
dr:
i18n:
direction: rtl
language_names:
dr: "دری"
content_item:
Expand Down
2 changes: 2 additions & 0 deletions config/locales/pa-ur.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
pa-ur:
i18n:
direction: rtl
content_item:
schema_name:
aaib_report:
Expand Down
2 changes: 2 additions & 0 deletions config/locales/ps.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
ps:
i18n:
direction: rtl
language_names:
ps: "پښتو"
content_item:
Expand Down

0 comments on commit cba752f

Please sign in to comment.