We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07d1943 commit 563e11bCopy full SHA for 563e11b
2 files changed
.changeset/yellow-stingrays-report.md
@@ -0,0 +1,5 @@
1
+---
2
+'@astrojs/starlight': patch
3
4
+
5
+Fixes a type-checking issue for users on newer versions of TypeScript
packages/starlight/utils/i18n.ts
@@ -193,6 +193,9 @@ function getLocaleDir(locale: Intl.Locale): 'ltr' | 'rtl' {
193
}
194
// Firefox does not support `textInfo` or `getTextInfo` yet so we fallback to a well-known list
195
// of right-to-left languages.
196
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
197
+ // @ts-ignore — This is a type error with newer versions of TypeScript’s DOM types.
198
+ // TODO: remove or switch to @ts-expect-error in #3572
199
return wellKnownRTL.includes(locale.language) ? 'rtl' : 'ltr';
200
201
0 commit comments