Skip to content
Snippets Groups Projects
Commit d2dc3c9c authored by Arun Sahijpal's avatar Arun Sahijpal Committed by Chris Wells
Browse files

Issue #3495211 by arunsahijpal, phenaproxima, narendrar, utkarsh_33: Use Drupal.t() correctly

parent ddb67bf1
No related branches found
No related tags found
No related merge requests found
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
......@@ -39,15 +39,21 @@
{#if PACKAGE_MANAGER.available && PACKAGE_MANAGER.errors.length === 0}
{#if ($queueList[$activeTab] && $queueList[$activeTab].some((item) => item.id === project.id)) || false}
<ProjectButtonBase click={() => handleDequeueClick(project.id)}>
{Drupal.t('Deselect')}<span class="visually-hidden"
>{project.title}</span
>
{@html Drupal.t(
'Deselect <span class="visually-hidden">@title</span>',
{
'@title': project.title,
},
)}
</ProjectButtonBase>
{:else}
<ProjectButtonBase click={() => handleAddToQueueClick(project)}>
{Drupal.t('Select')}<span class="visually-hidden"
>{project.title}</span
>
{@html Drupal.t(
'Select <span class="visually-hidden">@title</span>',
{
'@title': project.title,
},
)}
</ProjectButtonBase>
{/if}
{:else if project.commands}
......@@ -60,10 +66,12 @@
aria-haspopup="dialog"
click={() => openPopup(getCommandsPopupMessage(project), project)}
>
{Drupal.t('View Commands')}
<span class="visually-hidden"
>{Drupal.t(' for ')} {project.title}</span
>
{@html Drupal.t(
'View Commands <span class="visually-hidden">for @title</span>',
{
'@title': project.title,
},
)}
</ProjectButtonBase>
{/if}
{/if}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment