#19235269aad Thanks @HiDeoo! - Overhauls the built-in localization system which is now powered by the i18next library and available to use anywhere in your documentation website.
See the “Using UI translations” guide to learn more about how to access built-in UI labels or your own custom strings in your project. Plugin authors can also use the new injectTranslations() helper to add or update translation strings.
⚠️ BREAKING CHANGE: The Astro.props.labels props has been removed from the props passed down to custom component overrides.
If you are relying on Astro.props.labels (for example to read a built-in UI label), you will need to update your code to use the new Astro.locals.t() helper instead.
---
import type { Props } from '@astrojs/starlight/props';
// The `search.label` UI label for this page’s language:
const searchLabel = Astro.locals.t('search.label');
---
#2377a257b83 Thanks @HiDeoo! - Fixes an issue with synced <Tabs> components containing nested <Tabs> causing tab panels to not render correctly.
0.28.1
Patch Changes
#233479b9ade Thanks @HiDeoo! - Fixes an issue with Expressive Code UI labels not displaying correctly.
0.28.0
Minor Changes
#19235269aad Thanks @HiDeoo! - Overhauls the built-in localization system which is now powered by the i18next library and available to use anywhere in your documentation website.
See the “Using UI translations” guide to learn more about how to access built-in UI labels or your own custom strings in your project. Plugin authors can also use the new injectTranslations() helper to add or update translation strings.
⚠️ BREAKING CHANGE: The Astro.props.labels props has been removed from the props passed down to custom component overrides.
If you are relying on Astro.props.labels (for example to read a built-in UI label), you will need to update your code to use the new Astro.locals.t() helper instead.
---
import type { Props } from '@astrojs/starlight/props';
// The `search.label` UI label for this page’s language:
const searchLabel = Astro.locals.t('search.label');
---
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps @astrojs/starlight from 0.27.1 to 0.28.2.
Release notes
Sourced from
@astrojs/starlight
's releases.Changelog
Sourced from
@astrojs/starlight
's changelog.Commits
3fa1533
[ci] release (#2378)a257b83
Fix synced nested\<Tabs>
restoration issue (#2377)f0cb23a
[ci] release (#2335)79b9ade
Fix Expressive Code UI labels (#2334)41ed4fa
Components documentation improvements (#2121)8112d8a
[ci] release (#2332)7286220
Add support for translating sidebar badges (#2285)fd8cd2b
[ci] format5269aad
Usei18next
for UI strings and add newinjectTranslations
plugin callback...d7a295e
Fix broken restoration of remark directives. (#2327)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show