You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/content/docs/es/guides/authoring-content.md
+25Lines changed: 25 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -360,6 +360,31 @@ Un título opcional del bloque de código se puede establecer con un atributo `t
360
360
```
361
361
````
362
362
363
+
## Details
364
+
365
+
Los details (también conocidos como "revelaciones" o "acordeones") son útiles para ocultar contenido que no es inmediatamente relevante.
366
+
Los usuarios pueden hacer clic en un breve resumen para expandir y ver el contenido completo.
367
+
368
+
Usa el elemento HTML estándar [`<details>`](https://developer.mozilla.org/es/docs/Web/HTML/Element/details) y [`<summary>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/summary) en tu contenido Markdown para crear un widget de revelación.
369
+
370
+
Puedes anidar cualquier otra sintaxis de Markdown dentro de un elemento `<details>`.
371
+
372
+
<details>
373
+
<summary>¿Dónde y cuándo es más visible la constelación de Andrómeda?</summary>
374
+
375
+
La [constelación de Andrómeda](<https://es.wikipedia.org/wiki/Andr%C3%B3meda_(constelaci%C3%B3n)>) es más visible en el cielo nocturno durante el mes de noviembre en latitudes entre `+90°` y `−40°`.
376
+
377
+
</details>
378
+
379
+
```md
380
+
<details>
381
+
<summary>¿Dónde y cuándo es más visible la constelación de Andrómeda?</summary>
382
+
383
+
La [constelación de Andrómeda](<https://es.wikipedia.org/wiki/Andr%C3%B3meda_(constelaci%C3%B3n)>) es más visible en el cielo nocturno durante el mes de noviembre en latitudes entre `+90°` y `−40°`.
384
+
385
+
</details>
386
+
```
387
+
363
388
## Otras características comunes de Markdown
364
389
365
390
Starlight admite todas las demás sintaxis de autoría de Markdown, como listas y tablas. Puedes consultar la [Guía de referencia de Markdown](https://www.markdownguide.org/cheat-sheet/) para obtener una descripción general rápida de todos los elementos de sintaxis de Markdown.
Copy file name to clipboardExpand all lines: docs/src/content/docs/es/guides/i18n.mdx
+18-1Lines changed: 18 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -67,6 +67,8 @@ Starlight proporciona soporte incorporado para sitios multilingües, incluidas l
67
67
68
68
</Steps>
69
69
70
+
Para escenarios de i18n más avanzados, Starlight también admite la configuración de internacionalizaciónutlizando la [opción `i18n` de Astro](https://docs.astro.build/es/guides/internationalization/#configuración-de-rutas-i18n).
71
+
70
72
### Usa una raíz de configuración regional
71
73
72
74
Puedes usar una raíz de configuración regional para servir un idioma sin ningún prefijo i18n en tu ruta. Por ejemplo, si el inglés es tu configuración regional, una ruta de página en inglés se vería como `/about` en lugar de `/en/about`.
@@ -178,7 +180,8 @@ import UIStringsList from '~/components/ui-strings-list.astro';
178
180
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.
179
181
180
182
<LanguagesListstartsSentence /> los strings de UI traducidos se proporcionan de
181
-
forma predeterminada, y damos la bienvenida a [contribuciones para agregar más idiomas
183
+
forma predeterminada, y damos la bienvenida a [contribuciones para agregar más
Puedes proprocionar traducciones para idiomas adicionales, o editar nuestras etiquetas predeterminadas, a través de la colección de datos `i18n`.
@@ -273,3 +276,17 @@ export const collections = {
273
276
```
274
277
275
278
Aprende más sobre los esquemas de colección de contenido en [“Definir un esquema de colección”](https://docs.astro.build/es/guides/content-collections/#definiendo-un-esquema-de-colección) en la documentación de Astro.
279
+
280
+
## Acceder al idioma actual
281
+
282
+
Puedes usar [`Astro.currentLocale`](https://docs.astro.build/es/reference/api-reference/#astrocurrentlocale) para leer el idioma actual en componentes `.astro`.
283
+
284
+
El siguiente ejemplo lee el idioma actual y lo utiliza para generar un enlace a una página Acerca de en el idioma actual:
Copy file name to clipboardExpand all lines: docs/src/content/docs/guides/i18n.mdx
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -180,8 +180,9 @@ import UIStringsList from '~/components/ui-strings-list.astro';
180
180
181
181
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.
182
182
183
-
<LanguagesListstartsSentence /> translated UI strings are provided out of the box,
184
-
and we welcome [contributions to add more default languages](https://github.com/withastro/starlight/blob/main/CONTRIBUTING.md).
183
+
<LanguagesListstartsSentence /> translated UI strings are provided out of the
184
+
box, and we welcome [contributions to add more default
Copy file name to clipboardExpand all lines: docs/src/content/docs/hi/guides/i18n.mdx
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -178,9 +178,10 @@ import UIStringsList from '~/components/ui-strings-list.astro';
178
178
179
179
अनुवादित कंटेंट फ़ाइलों को होस्ट करने के अलावा, Starlight आपको डिफ़ॉल्ट UI स्ट्रिंग्स (उदाहरण के लिए कंटेंट तालिका में "इस पेज पर" शीर्षक) का अनुवाद करने की अनुमति देता है ताकि आपके पाठक आपकी साइट को पूरी तरह से चयनित भाषा में अनुभव कर सकें।
180
180
181
-
<LanguagesListstartsSentence /> अनुवादित UI स्ट्रिंग्स सामने से मिलती हैं , और हम
182
-
[अधिक डिफ़ॉल्ट भाषाएँ जोड़ने के लिए योगदान](https://github.com/withastro/starlight/blob/main/CONTRIBUTING.md)
183
-
का स्वागत करते हैं।
181
+
<LanguagesListstartsSentence /> अनुवादित UI स्ट्रिंग्स सामने से मिलती हैं , और
182
+
हम [अधिक डिफ़ॉल्ट भाषाएँ जोड़ने के लिए
183
+
योगदान](https://github.com/withastro/starlight/blob/main/CONTRIBUTING.md) का
184
+
स्वागत करते हैं।
184
185
185
186
आप `i18n` डेटा संग्रह के माध्यम से उन अतिरिक्त भाषाओं के लिए अनुवाद प्रदान कर सकते हैं जिनका आप समर्थन करते हैं - या हमारे डिफ़ॉल्ट लेबल को ओवरराइड कर सकते हैं।
Copy file name to clipboardExpand all lines: docs/src/content/docs/ru/guides/i18n.mdx
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -178,9 +178,10 @@ import UIStringsList from '~/components/ui-strings-list.astro';
178
178
179
179
Кроме размещения переведённых файлов с контентом, Starlight позволяет вам переводить текст интерфейсе (например, заголовок «На этой странице» в оглавлении), чтобы ваши читатели могли полностью погрузиться в ваш сайт на выбранном языке.
180
180
181
-
<LanguagesListstartsSentence /> — все переведённые строки пользовательского интерфейса
182
-
на указанных языках предоставляются «из коробки», и мы приветствуем [вклад в добавление
183
-
дополнительных языков по умолчанию](https://github.com/withastro/starlight/blob/main/CONTRIBUTING.md).
181
+
<LanguagesListstartsSentence /> — все переведённые строки пользовательского
182
+
интерфейса на указанных языках предоставляются «из коробки», и мы приветствуем
Вы можете добавить переводы для дополнительных языков, которые вы поддерживаете — или переопределить наши стандартные тексты — через коллекцию данных `i18n`.
0 commit comments