Skip to content

Commit

Permalink
[i18nIgnore] Update dependencies (#2007)
Browse files Browse the repository at this point in the history
  • Loading branch information
delucis authored Jun 12, 2024
1 parent 40359c7 commit 44ca490
Show file tree
Hide file tree
Showing 30 changed files with 1,626 additions and 1,792 deletions.
5 changes: 5 additions & 0 deletions .changeset/plenty-ants-hunt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@astrojs/starlight': patch
---

Updates internal dependencies
2 changes: 1 addition & 1 deletion .github/workflows/size-limit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
- name: Run size-limit
uses: andresz1/size-limit-action@dd31dce7dcc72a041fd3e49abf0502b13fc4ce05
uses: andresz1/size-limit-action@v1.8.0
with:
github_token: ${{ secrets.FREDKBOT_GITHUB_TOKEN }}
build_script: 'build:examples'
Expand Down
2 changes: 1 addition & 1 deletion docs/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ export default defineConfig({
errorOnFallbackPages: false,
errorOnInconsistentLocale: true,
}),
]
]
: [],
}),
],
Expand Down
8 changes: 4 additions & 4 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@
"lunaria:build": "lunaria build"
},
"dependencies": {
"@astro-community/astro-embed-youtube": "^0.4.4",
"@astro-community/astro-embed-youtube": "^0.5.2",
"@astrojs/starlight": "workspace:*",
"@lunariajs/core": "^0.1.0",
"@types/culori": "^2.0.0",
"astro": "^4.8.6",
"astro": "^4.10.2",
"culori": "^3.2.0",
"sharp": "^0.32.5"
},
"devDependencies": {
"pa11y-ci": "^3.0.1",
"starlight-links-validator": "^0.7.1",
"start-server-and-test": "^2.0.0"
"starlight-links-validator": "^0.9.0",
"start-server-and-test": "^2.0.4"
}
}
3 changes: 2 additions & 1 deletion docs/src/content/docs/es/guides/i18n.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,8 @@ import UIStringsList from '~/components/ui-strings-list.astro';
Además de alojar archivos de contenido traducidos, Starlight te permite traducir las etiquetas de UI predeterminadas (p. ej. el encabezado "En esta página" en la tabla de contenidos) para que tus lectores puedan experimentar tu sitio completamente en el idioma seleccionado.

<LanguagesList startsSentence /> los strings de UI traducidos se proporcionan de
forma predeterminada, y damos la bienvenida a [contribuciones para agregar más idiomas
forma predeterminada, y damos la bienvenida a [contribuciones para agregar más
idiomas
predeterminados](https://github.com/withastro/starlight/blob/main/CONTRIBUTING.md).

Puedes proprocionar traducciones para idiomas adicionales, o editar nuestras etiquetas predeterminadas, a través de la colección de datos `i18n`.
Expand Down
5 changes: 3 additions & 2 deletions docs/src/content/docs/guides/i18n.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,9 @@ import UIStringsList from '~/components/ui-strings-list.astro';

In addition to hosting translated content files, Starlight allows you to translate the default UI strings (e.g. the "On this page" heading in the table of contents) so that your readers can experience your site entirely in the selected language.

<LanguagesList startsSentence /> translated UI strings are provided out of the box,
and we welcome [contributions to add more default languages](https://github.com/withastro/starlight/blob/main/CONTRIBUTING.md).
<LanguagesList startsSentence /> translated UI strings are provided out of the
box, and we welcome [contributions to add more default
languages](https://github.com/withastro/starlight/blob/main/CONTRIBUTING.md).

You can provide translations for additional languages you support — or override our default labels — via the `i18n` data collection.

Expand Down
7 changes: 4 additions & 3 deletions docs/src/content/docs/hi/guides/i18n.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,10 @@ import UIStringsList from '~/components/ui-strings-list.astro';

अनुवादित कंटेंट फ़ाइलों को होस्ट करने के अलावा, Starlight आपको डिफ़ॉल्ट UI स्ट्रिंग्स (उदाहरण के लिए कंटेंट तालिका में "इस पेज पर" शीर्षक) का अनुवाद करने की अनुमति देता है ताकि आपके पाठक आपकी साइट को पूरी तरह से चयनित भाषा में अनुभव कर सकें।

<LanguagesList startsSentence /> अनुवादित UI स्ट्रिंग्स सामने से मिलती हैं , और हम
[अधिक डिफ़ॉल्ट भाषाएँ जोड़ने के लिए योगदान](https://github.com/withastro/starlight/blob/main/CONTRIBUTING.md)
का स्वागत करते हैं।
<LanguagesList startsSentence /> अनुवादित UI स्ट्रिंग्स सामने से मिलती हैं , और
हम [अधिक डिफ़ॉल्ट भाषाएँ जोड़ने के लिए
योगदान](https://github.com/withastro/starlight/blob/main/CONTRIBUTING.md) का
स्वागत करते हैं।

आप `i18n` डेटा संग्रह के माध्यम से उन अतिरिक्त भाषाओं के लिए अनुवाद प्रदान कर सकते हैं जिनका आप समर्थन करते हैं - या हमारे डिफ़ॉल्ट लेबल को ओवरराइड कर सकते हैं।

Expand Down
7 changes: 4 additions & 3 deletions docs/src/content/docs/ru/guides/i18n.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,10 @@ import UIStringsList from '~/components/ui-strings-list.astro';

Кроме размещения переведённых файлов с контентом, Starlight позволяет вам переводить текст интерфейсе (например, заголовок «На этой странице» в оглавлении), чтобы ваши читатели могли полностью погрузиться в ваш сайт на выбранном языке.

<LanguagesList startsSentence /> — все переведённые строки пользовательского интерфейса
на указанных языках предоставляются «из коробки», и мы приветствуем [вклад в добавление
дополнительных языков по умолчанию](https://github.com/withastro/starlight/blob/main/CONTRIBUTING.md).
<LanguagesList startsSentence /> — все переведённые строки пользовательского
интерфейса на указанных языках предоставляются «из коробки», и мы приветствуем
[вклад в добавление дополнительных языков по
умолчанию](https://github.com/withastro/starlight/blob/main/CONTRIBUTING.md).

Вы можете добавить переводы для дополнительных языков, которые вы поддерживаете — или переопределить наши стандартные тексты — через коллекцию данных `i18n`.

Expand Down
4 changes: 2 additions & 2 deletions docs/src/content/docs/tr/guides/sidebar.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ Aşdağıdaki gibi kenar çubuğu otomatik olarak oluşturulacaktır:
},
]}
/>
Otomatik oluşturulan kenar çubukları ile ilgili daha fazla bilgiye [otomatik oluşturulan
gruplar](#otomatik-oluşturulmuş-gruplar) bölümünden ulaşabilirsiniz.
Otomatik oluşturulan kenar çubukları ile ilgili daha fazla bilgiye [otomatik
oluşturulan gruplar](#otomatik-oluşturulmuş-gruplar) bölümünden ulaşabilirsiniz.

## Bağlantı ve Bağlantı Grupları Ekleme

Expand Down
2 changes: 1 addition & 1 deletion examples/basics/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"dependencies": {
"@astrojs/starlight": "^0.24.1",
"astro": "^4.8.6",
"astro": "^4.10.2",
"sharp": "^0.32.5"
}
}
4 changes: 2 additions & 2 deletions examples/tailwind/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"@astrojs/starlight": "^0.24.1",
"@astrojs/starlight-tailwind": "^2.0.3",
"@astrojs/tailwind": "^5.1.0",
"astro": "^4.8.6",
"astro": "^4.10.2",
"sharp": "^0.32.5",
"tailwindcss": "^3.4.1"
"tailwindcss": "^3.4.4"
}
}
25 changes: 14 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,32 +12,35 @@
},
"license": "MIT",
"devDependencies": {
"@astrojs/check": "^0.5.10",
"@changesets/changelog-github": "^0.4.8",
"@changesets/cli": "^2.26.1",
"@size-limit/file": "^8.2.4",
"astro": "^4.8.6",
"prettier": "^3.0.0",
"prettier-plugin-astro": "^0.13.0",
"size-limit": "^8.2.4",
"@astrojs/check": "^0.7.0",
"@changesets/changelog-github": "^0.5.0",
"@changesets/cli": "^2.27.5",
"@size-limit/file": "^11.1.4",
"astro": "^4.10.2",
"prettier": "^3.3.2",
"prettier-plugin-astro": "^0.14.0",
"size-limit": "^11.1.4",
"typescript": "^5.4.5"
},
"packageManager": "[email protected]",
"size-limit": [
{
"name": "/index.html",
"path": "examples/basics/dist/index.html",
"limit": "10 kB"
"limit": "10 kB",
"gzip": true
},
{
"name": "/_astro/*.js",
"path": "examples/basics/dist/_astro/*.js",
"limit": "23 kB"
"limit": "23 kB",
"gzip": true
},
{
"name": "/_astro/*.css",
"path": "examples/basics/dist/_astro/*.css",
"limit": "14.5 kB"
"limit": "14.5 kB",
"gzip": true
}
]
}
2 changes: 1 addition & 1 deletion packages/file-icons-generator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"license": "MIT",
"dependencies": {
"opentype.js": "^1.3.4",
"tsx": "^4.7.1"
"tsx": "^4.15.2"
},
"devDependencies": {
"@types/opentype.js": "^1.3.8"
Expand Down
2 changes: 1 addition & 1 deletion packages/starlight/__e2e__/fixtures/basics/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"private": true,
"dependencies": {
"@astrojs/starlight": "workspace:*",
"astro": "^4.8.6"
"astro": "^4.10.2"
}
}
5 changes: 2 additions & 3 deletions packages/starlight/__tests__/i18n/translations-ec.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ import { addTranslations } from '../../integrations/expressive-code/translations
import { StarlightConfigSchema, type StarlightUserConfig } from '../../utils/user-config';

vi.mock('astro-expressive-code', async () => {
const mod = await vi.importActual<typeof import('astro-expressive-code')>(
'astro-expressive-code'
);
const mod =
await vi.importActual<typeof import('astro-expressive-code')>('astro-expressive-code');
return {
...mod,
pluginFramesTexts: {
Expand Down
Loading

0 comments on commit 44ca490

Please sign in to comment.