Skip to content

Commit

Permalink
Prevent title from being translated (#2762)
Browse files Browse the repository at this point in the history
  • Loading branch information
HiDeoo authored Jan 7, 2025
1 parent 8de6f15 commit 7ab1576
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/smart-moons-repair.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@astrojs/starlight': patch
---

Prevents the header title from being translated by automatic translation systems.
2 changes: 1 addition & 1 deletion packages/starlight/components/SiteTitle.astro
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const { siteTitle, siteTitleHref } = Astro.props;
</>
)
}
<span class:list={{ 'sr-only': config.logo?.replacesTitle }}>
<span class:list={{ 'sr-only': config.logo?.replacesTitle }} translate="no">
{siteTitle}
</span>
</a>
Expand Down

0 comments on commit 7ab1576

Please sign in to comment.