Skip to content

Commit

Permalink
[i18nIgnore] Added aside label translations in Russian (#1088)
Browse files Browse the repository at this point in the history
Co-authored-by: Loot Nurakhmetov <nurakhmetov.l@rahmetapp.kz>
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
  • Loading branch information
3 people committed Nov 17, 2023
1 parent a3b80f7 commit 4fe5537
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 9 deletions.
5 changes: 5 additions & 0 deletions .changeset/dull-lamps-train.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@astrojs/starlight": patch
---

i18n(ru): added Russian aside labels translation
2 changes: 1 addition & 1 deletion docs/src/content/docs/ru/environmental-impact.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ Cache-Control: public, max-age=604800, immutable
Встроенные видео, такие как YouTube и Vimeo, можно улучшить, ожидая [взаимодействие пользователя для загрузки видео][lazy-video].
Пакеты, такие как [`astro-embed`][embed], могут помочь с часто используемыми сервисами.

:::tip[Знаете ли вы?]
:::tip
Разбор и компиляция JavaScript являются одной из самых ресурсоемких задач, которые браузерам приходится выполнять.
По сравнению с отображением изображения JPEG того же размера, [обработка JavaScript может занять более чем в 30 раз больше времени][cost-of-js].
:::
Expand Down
6 changes: 3 additions & 3 deletions docs/src/content/docs/ru/guides/authoring-content.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,12 +133,12 @@ npm create astro@latest -- --template starlight

Вы можете указать свой заголовок вставки в квадратных скобках после типа вставки, например, `:::tip[Знали ли вы?]`.

:::tip[Знали ли вы?]
:::tip
Astro позволяет создавать быстрые сайты с помощью ["архитектуры островов"](https://docs.astro.build/ru/concepts/islands/)
:::

```md
:::tip[Знали ли вы?]
:::tip
Astro позволяет создавать быстрые сайты с помощью ["архитектуры островов"](https://docs.astro.build/ru/concepts/islands/)
:::
```
Expand Down Expand Up @@ -167,7 +167,7 @@ Astro позволяет создавать быстрые сайты с пом
:::

:::danger
Your users may be more productive and find your product easier to use thanks to helpful Starlight features.
Ваши пользователи могут быть более продуктивными и находить ваш продукт более простым в использовании благодаря полезным функциям Starlight.

- Четкая навигация
- Цветовая тема, настраиваемая пользователем
Expand Down
2 changes: 1 addition & 1 deletion docs/src/content/docs/ru/guides/sidebar.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ sidebar:
]}
/>

:::note[Заметка]
:::note
Конфигурация `sidebar` в метаданных используется только для автоматически генерируемых ссылок и будет проигнорирована для вручную определенных ссылок.
:::

Expand Down
8 changes: 4 additions & 4 deletions packages/starlight/translations/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
"page.previousLink": "Предыдущая",
"page.nextLink": "Следующая",
"404.text": "Страница не найдена. Проверьтье URL или используйте поиск по сайту",
"aside.note": "Note",
"aside.tip": "Tip",
"aside.caution": "Caution",
"aside.danger": "Danger"
"aside.note": "Заметка",
"aside.tip": "Знали ли вы?",
"aside.caution": "Осторожно",
"aside.danger": "Опасно"
}

0 comments on commit 4fe5537

Please sign in to comment.