Skip to content

Commit 7ab1576

Browse files
authored
Prevent title from being translated (#2762)
1 parent 8de6f15 commit 7ab1576

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/smart-moons-repair.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@astrojs/starlight': patch
3+
---
4+
5+
Prevents the header title from being translated by automatic translation systems.

packages/starlight/components/SiteTitle.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const { siteTitle, siteTitleHref } = Astro.props;
2929
</>
3030
)
3131
}
32-
<span class:list={{ 'sr-only': config.logo?.replacesTitle }}>
32+
<span class:list={{ 'sr-only': config.logo?.replacesTitle }} translate="no">
3333
{siteTitle}
3434
</span>
3535
</a>

0 commit comments

Comments
 (0)