Visitar URL original
USWDS - Identifier: Fix content prefix bug in html-templates by amyleadem · Pull Request #5857 · uswds/uswds · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion packages/templates/usa-base/includes/_identifier.twig
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
'masthead': {
'aria_label': 'Agency identifier',
'description': 'Agency description',
'content': 'An official website of the',
'content_prefix': 'An',
'content': 'official website of the',
'parent': {
'name': '<Parent agency>',
'shortname': '<Parent shortname>',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"masthead": {
"aria_label": "Identificador de la agencia,",
"description": "Descripción de la agencia,",
"content_prefix": null,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For consistency, it seems like the Spanish prefix here would be Un.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I brought up the same thing in this thread but Amy clarified that this attribute is used to ignore An in an official because it sounds like "unofficial". We shouldn't need to ignore the prefix in the Spanish variant!

"content": "Un sitio web oficial de",
"parent": {
"name": "<Parent agency>",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"masthead": {
"aria_label": "Identificador de la agencia,,,",
"description": "Descripción de la agencia,,,",
"content_prefix": null,
Comment thread
mahoneycm marked this conversation as resolved.
"content": "Un sitio web oficial de",
"parent": {
"name": "<Parent agency>",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"masthead": {
"aria_label": "Identificador de la agencia,,",
"description": "Descripción de la agencia,,",
"content_prefix": null,
"content": "Un sitio web oficial de",
"parent": {
"name": "<Parent agency>",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"masthead": {
"aria_label": "Identificador de la agencia,,,,",
"description": "Descripción de la agencia,,,,",
"content_prefix": null,
"content": "Un sitio web oficial de",
"parent": {
"name": "<Parent agency>",
Expand Down