Skip to content

Define well-known RTL locales before calling getLocaleInfo() for default locale#2167

Merged
delucis merged 2 commits intomainfrom
chris/fix-i18n-ff
Aug 6, 2024
Merged

Define well-known RTL locales before calling getLocaleInfo() for default locale#2167
delucis merged 2 commits intomainfrom
chris/fix-i18n-ff

Conversation

@delucis
Copy link
Copy Markdown
Member

@delucis delucis commented Aug 6, 2024

Description

  • Fixes Failed to get locale informations #1961 (comment)
  • We were using getLocaleInfo() before defining our well-known RTL locales. This was only used in rare circumstances (environments that support neither Intl.Locale#getTextInfo() nor the non-standard Intl.Locale#textInfo accessor), so hadn’t noticed the issue until now. (A StackBlitz or other web container running on Firefox is probably the only place you can really hit this.)

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Aug 6, 2024

🦋 Changeset detected

Latest commit: 0b0ad25

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@astrojs/starlight Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot added the 🌟 core Changes to Starlight’s main package label Aug 6, 2024
@netlify
Copy link
Copy Markdown

netlify bot commented Aug 6, 2024

Deploy Preview for astro-starlight ready!

Name Link
🔨 Latest commit 0b0ad25
🔍 Latest deploy log https://app.netlify.com/sites/astro-starlight/deploys/66b1ec1905e38c0008c16828
😎 Deploy Preview https://deploy-preview-2167--astro-starlight.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 100 (no change from production)
Accessibility: 100 (no change from production)
Best Practices: 100 (no change from production)
SEO: 92 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify site configuration.

@delucis delucis changed the title Define well-known RTL locales before calling getLocaleInfo() for de… Define well-known RTL locales before calling getLocaleInfo() for default locale Aug 6, 2024
@delucis delucis mentioned this pull request Aug 6, 2024
1 task
@delucis delucis added the 🌟 patch Change that triggers a patch release label Aug 6, 2024
@astrobot-houston
Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size
/index.html 5.95 KB (0%)
/_astro/*.js 21.93 KB (0%)
/_astro/*.css 13.81 KB (0%)

Copy link
Copy Markdown
Member

@HiDeoo HiDeoo left a comment

Choose a reason for hiding this comment

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

Well, that's definitely a super specific case, but glad it'll be fixed 🎉

@delucis delucis merged commit 9ac7725 into main Aug 6, 2024
@delucis delucis deleted the chris/fix-i18n-ff branch August 6, 2024 09:32
@astrobot-houston astrobot-houston mentioned this pull request Aug 5, 2024
HiDeoo added a commit to HiDeoo/starlight that referenced this pull request Aug 6, 2024
* main: (275 commits)
  [ci] release (withastro#2165)
  Define well-known RTL locales before calling `getLocaleInfo()` for default locale (withastro#2167)
  Update dependencies (withastro#2166)
  Improve page load performance (withastro#2155)
  docs: Add CodeSweetly to showcase (withastro#2160)
  [ci] release (withastro#2145)
  Fix bug for projects with spaces in their pathname (withastro#2156)
  ci: update file icons (withastro#2157)
  [ci] format
  Merge <link rel="canonical" /> tags, quick fixes (withastro#2153) (withastro#2154)
  Add two new showcase sites (withastro#2149)
  [ci] format
  i18n(zh-cn): Update `environmental-impact.md` (withastro#2148)
  add Saasfly showcase (withastro#2147)
  docs: add 'og:image:alt' metadata (withastro#2143)
  Deleting unnecessary twitter meta tags, quick fixes (withastro#2137)
  [ci] format
  i18n(es): update `environmental-impact` (withastro#2144)
  [ci] release (withastro#2142)
  feat: Add Pinterest icon to social list (withastro#2135)
  ...
Yoxnear pushed a commit to Yoxnear/starlight-custom that referenced this pull request Jul 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🌟 core Changes to Starlight’s main package 🌟 patch Change that triggers a patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Failed to get locale informations

3 participants