From 63b43086490b62f5ae69fe6ce1bd5fca0cf18336 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Thu, 27 Aug 2026 19:28:23 +0200 Subject: [PATCH 1/4] Add missing Expressive Code translations based on Astro Docs --- packages/starlight/translations/ar.json | 3 +++ packages/starlight/translations/de.json | 3 +++ packages/starlight/translations/hi.json | 3 +++ packages/starlight/translations/it.json | 3 +++ packages/starlight/translations/ja.json | 3 +++ packages/starlight/translations/ko.json | 3 +++ packages/starlight/translations/pt.json | 3 +++ packages/starlight/translations/zh-CN.json | 3 +++ packages/starlight/translations/zh-TW.json | 3 +++ 9 files changed, 27 insertions(+) diff --git a/packages/starlight/translations/ar.json b/packages/starlight/translations/ar.json index 5d02881748b..77c458d4be1 100644 --- a/packages/starlight/translations/ar.json +++ b/packages/starlight/translations/ar.json @@ -24,6 +24,9 @@ "aside.tip": "نصيحة", "aside.caution": "تنبيه", "aside.danger": "تحذير", + "expressiveCode.terminalWindowFallbackTitle": "نافذة طرفيّة", + "expressiveCode.copyButtonTooltip": "نسخ إلى الحافظة", + "expressiveCode.copyButtonCopied": "تم النسخ!", "fileTree.directory": "Directory", "builtWithStarlight.label": "طوِّر بواسطة Starlight", "heading.anchorLabel": "Section titled “{{title}}”" diff --git a/packages/starlight/translations/de.json b/packages/starlight/translations/de.json index c9cf8856158..0925266a098 100644 --- a/packages/starlight/translations/de.json +++ b/packages/starlight/translations/de.json @@ -24,6 +24,9 @@ "aside.tip": "Tipp", "aside.caution": "Achtung", "aside.danger": "Gefahr", + "expressiveCode.terminalWindowFallbackTitle": "Terminal-Fenster", + "expressiveCode.copyButtonTooltip": "In Zwischenablage kopieren", + "expressiveCode.copyButtonCopied": "Kopiert!", "fileTree.directory": "Ordner", "builtWithStarlight.label": "Erstellt mit Starlight", "heading.anchorLabel": "Abschnitt betitelt „{{title}}“" diff --git a/packages/starlight/translations/hi.json b/packages/starlight/translations/hi.json index 6cd11a0ca76..9fbe93f9ca6 100644 --- a/packages/starlight/translations/hi.json +++ b/packages/starlight/translations/hi.json @@ -24,6 +24,9 @@ "aside.tip": "संकेत", "aside.caution": "सावधानी", "aside.danger": "खतरा", + "expressiveCode.terminalWindowFallbackTitle": "टर्मिनल विंडो", + "expressiveCode.copyButtonTooltip": "क्लिपबोर्ड पर कॉपी करें", + "expressiveCode.copyButtonCopied": "कॉपी हो गया!", "fileTree.directory": "Directory", "builtWithStarlight.label": "Starlight द्वारा निर्मित", "heading.anchorLabel": "Section titled “{{title}}”" diff --git a/packages/starlight/translations/it.json b/packages/starlight/translations/it.json index 65c32f15b6f..bdbfccae2a8 100644 --- a/packages/starlight/translations/it.json +++ b/packages/starlight/translations/it.json @@ -24,6 +24,9 @@ "aside.tip": "Consiglio", "aside.caution": "Attenzione", "aside.danger": "Pericolo", + "expressiveCode.terminalWindowFallbackTitle": "Finestra del terminale", + "expressiveCode.copyButtonTooltip": "Copia", + "expressiveCode.copyButtonCopied": "Copiato!", "fileTree.directory": "Directory", "builtWithStarlight.label": "Built with Starlight", "heading.anchorLabel": "Sezione intitolata “{{title}}”" diff --git a/packages/starlight/translations/ja.json b/packages/starlight/translations/ja.json index 2e1fd806968..518986fde92 100644 --- a/packages/starlight/translations/ja.json +++ b/packages/starlight/translations/ja.json @@ -24,6 +24,9 @@ "aside.tip": "ヒント", "aside.caution": "注意", "aside.danger": "危険", + "expressiveCode.terminalWindowFallbackTitle": "ターミナルウィンドウ", + "expressiveCode.copyButtonTooltip": "クリップボードにコピー", + "expressiveCode.copyButtonCopied": "コピーしました!", "fileTree.directory": "ディレクトリ", "builtWithStarlight.label": "Starlightで作成", "heading.anchorLabel": "Section titled “{{title}}”" diff --git a/packages/starlight/translations/ko.json b/packages/starlight/translations/ko.json index c8db5972fec..fdc62c6f703 100644 --- a/packages/starlight/translations/ko.json +++ b/packages/starlight/translations/ko.json @@ -24,6 +24,9 @@ "aside.tip": "팁", "aside.caution": "주의", "aside.danger": "위험", + "expressiveCode.terminalWindowFallbackTitle": "터미널 창", + "expressiveCode.copyButtonTooltip": "클립보드로 복사", + "expressiveCode.copyButtonCopied": "복사 완료!", "fileTree.directory": "디렉터리", "builtWithStarlight.label": "이 웹사이트는 Starlight로 제작되었습니다.", "heading.anchorLabel": "섹션 제목: “{{title}}”" diff --git a/packages/starlight/translations/pt.json b/packages/starlight/translations/pt.json index 25b57b2fd5b..e16cdf55b65 100644 --- a/packages/starlight/translations/pt.json +++ b/packages/starlight/translations/pt.json @@ -24,6 +24,9 @@ "aside.tip": "Dica", "aside.caution": "Cuidado", "aside.danger": "Perigo", + "expressiveCode.terminalWindowFallbackTitle": "Janela do terminal", + "expressiveCode.copyButtonTooltip": "Copiar para área de transferência", + "expressiveCode.copyButtonCopied": "Copiado!", "fileTree.directory": "Directory", "builtWithStarlight.label": "Feito com Starlight", "heading.anchorLabel": "Seção intitulada “{{title}}”" diff --git a/packages/starlight/translations/zh-CN.json b/packages/starlight/translations/zh-CN.json index 17c0f4e98f3..ab378c58133 100644 --- a/packages/starlight/translations/zh-CN.json +++ b/packages/starlight/translations/zh-CN.json @@ -24,6 +24,9 @@ "aside.tip": "提示", "aside.caution": "警告", "aside.danger": "危险", + "expressiveCode.terminalWindowFallbackTitle": "终端窗口", + "expressiveCode.copyButtonTooltip": "复制到剪贴板", + "expressiveCode.copyButtonCopied": "复制成功!", "fileTree.directory": "文件夹", "builtWithStarlight.label": "基于 Starlight 构建", "heading.anchorLabel": "Section titled “{{title}}”" diff --git a/packages/starlight/translations/zh-TW.json b/packages/starlight/translations/zh-TW.json index 001e1d77fe1..2ba8fa8e076 100644 --- a/packages/starlight/translations/zh-TW.json +++ b/packages/starlight/translations/zh-TW.json @@ -24,6 +24,9 @@ "aside.tip": "提示", "aside.caution": "警告", "aside.danger": "危險", + "expressiveCode.terminalWindowFallbackTitle": "終端機視窗", + "expressiveCode.copyButtonTooltip": "複製到剪貼簿", + "expressiveCode.copyButtonCopied": "複製成功!", "fileTree.directory": "目錄", "builtWithStarlight.label": "Built with Starlight", "heading.anchorLabel": "Section titled “{{title}}”" From d2b0a5294fdc0b14965c4d1b93caf191284c6555 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Thu, 27 Aug 2026 19:33:35 +0200 Subject: [PATCH 2/4] docs: add changeset --- .changeset/clean-breads-decide.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/clean-breads-decide.md diff --git a/.changeset/clean-breads-decide.md b/.changeset/clean-breads-decide.md new file mode 100644 index 00000000000..9ff8472fae1 --- /dev/null +++ b/.changeset/clean-breads-decide.md @@ -0,0 +1,5 @@ +--- +"@astrojs/starlight": patch +--- + +Adds the missing translations for Expressive Code in the following locales: `ar`, `de`, `hi`, `it`, `ja`, `ko`, `pt`, `zh-CN`, and `zh-TW`. From 5d41a7fe00205d4a231a85b54140e3813c8c0b3c Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Thu, 27 Aug 2026 21:07:27 +0200 Subject: [PATCH 3/4] remove `de` changes Co-authored-by: Chris Swithinbank --- packages/starlight/translations/de.json | 3 --- 1 file changed, 3 deletions(-) diff --git a/packages/starlight/translations/de.json b/packages/starlight/translations/de.json index 0925266a098..c9cf8856158 100644 --- a/packages/starlight/translations/de.json +++ b/packages/starlight/translations/de.json @@ -24,9 +24,6 @@ "aside.tip": "Tipp", "aside.caution": "Achtung", "aside.danger": "Gefahr", - "expressiveCode.terminalWindowFallbackTitle": "Terminal-Fenster", - "expressiveCode.copyButtonTooltip": "In Zwischenablage kopieren", - "expressiveCode.copyButtonCopied": "Kopiert!", "fileTree.directory": "Ordner", "builtWithStarlight.label": "Erstellt mit Starlight", "heading.anchorLabel": "Abschnitt betitelt „{{title}}“" From f8c73fc345c0f889810d1733db90ad1a54bd6cc6 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Thu, 27 Aug 2026 21:08:05 +0200 Subject: [PATCH 4/4] remove `de` from the changeset --- .changeset/clean-breads-decide.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.changeset/clean-breads-decide.md b/.changeset/clean-breads-decide.md index 9ff8472fae1..f36c1856148 100644 --- a/.changeset/clean-breads-decide.md +++ b/.changeset/clean-breads-decide.md @@ -2,4 +2,4 @@ "@astrojs/starlight": patch --- -Adds the missing translations for Expressive Code in the following locales: `ar`, `de`, `hi`, `it`, `ja`, `ko`, `pt`, `zh-CN`, and `zh-TW`. +Adds the missing translations for Expressive Code in the following locales: `ar`, `hi`, `it`, `ja`, `ko`, `pt`, `zh-CN`, and `zh-TW`.