@astrojs/starlight 0.28.0 → 0.28.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @astrojs/starlight
2
2
 
3
+ ## 0.28.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#2334](https://github.com/withastro/starlight/pull/2334) [`79b9ade`](https://github.com/withastro/starlight/commit/79b9ade194cf704dad79267715a6970e0d7a7277) Thanks [@HiDeoo](https://github.com/HiDeoo)! - Fixes an issue with Expressive Code UI labels not displaying correctly.
8
+
3
9
  ## 0.28.0
4
10
 
5
11
  ### Minor Changes
@@ -29,7 +29,7 @@ function addTranslationsForLocale(
29
29
  'expressiveCode.terminalWindowFallbackTitle',
30
30
  ] as const;
31
31
  translationKeys.forEach((key) => {
32
- const translation = t(key);
32
+ const translation = t.exists(key) ? t(key) : undefined;
33
33
  if (!translation) return;
34
34
  const ecId = key.replace(/^expressiveCode\./, '');
35
35
  pluginFramesTexts.overrideTexts(lang, { [ecId]: translation });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astrojs/starlight",
3
- "version": "0.28.0",
3
+ "version": "0.28.1",
4
4
  "description": "Build beautiful, high-performance documentation websites with Astro",
5
5
  "keywords": [
6
6
  "docs",
@@ -240,7 +240,7 @@ function isElementNode(node: ElementContent): node is Element {
240
240
  function throwFileTreeValidationError(message: string): never {
241
241
  throw new AstroError(
242
242
  message,
243
- 'To learn more about the `<FileTree>` component, see https://starlight.astro.build/guides/components/#file-tree'
243
+ 'To learn more about the `<FileTree>` component, see https://starlight.astro.build/components/file-tree/'
244
244
  );
245
245
  }
246
246
 
@@ -67,7 +67,7 @@ export const processSteps = (html: string | undefined) => {
67
67
  class StepsError extends AstroError {
68
68
  constructor(message: string, html?: string) {
69
69
  let hint =
70
- 'To learn more about the `<Steps>` component, see https://starlight.astro.build/guides/components/#steps';
70
+ 'To learn more about the `<Steps>` component, see https://starlight.astro.build/components/steps/';
71
71
  if (html) {
72
72
  hint += '\n\nFull HTML passed to `<Steps>`:\n' + prettyPrintHtml(html);
73
73
  }