Skip to content

Commit

Permalink
Russian translation update (#26)
Browse files Browse the repository at this point in the history
* docs: translate config

* docs: translate faq

* docs: translate cookbook

* docs: translate migration
  • Loading branch information
Hkr32 committed May 27, 2023
1 parent e854a96 commit 2a44bd0
Show file tree
Hide file tree
Showing 11 changed files with 148 additions and 148 deletions.
8 changes: 4 additions & 4 deletions src/.vuepress/navbar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default navbar([
icon: "puzzle-piece",
children: [
{
text: "Auto catalog Plugin",
text: "Плагин автокаталога",
icon: "network-wired",
link: "https://plugin-auto-catalog.vuejs.press",
},
Expand Down Expand Up @@ -84,7 +84,7 @@ export default navbar([
link: "https://plugin-reading-time2.vuejs.press",
},
{
text: "Remove PWA Plugin",
text: "Плагин удаления PWA",
icon: "trash-can",
link: "https://plugin-remove-pwa.vuejs.press",
},
Expand All @@ -99,7 +99,7 @@ export default navbar([
link: "https://plugin-sass-palette.vuejs.press",
},
{
text: "Client Search Plugin",
text: "Плагин клиентского поиска",
icon: "search",
link: "https://plugin-search-pro.vuejs.press",
},
Expand All @@ -109,7 +109,7 @@ export default navbar([
link: "https://plugin-seo2.vuejs.press",
},
{
text: "VuePress shared",
text: "VuePress поделиться",
icon: "toolbox",
link: "https://plugin-shared.vuejs.press",
},
Expand Down
2 changes: 1 addition & 1 deletion src/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ title: Список изменений
icon: clock
---

See [Github Repo](https://github.com/vuepress-theme-hope/vuepress-theme-hope/blob/main/CHANGELOG.md).
Смотрите [Репозиторий на Github](https://github.com/vuepress-theme-hope/vuepress-theme-hope/blob/main/CHANGELOG.md).
14 changes: 7 additions & 7 deletions src/cookbook/advanced/extend.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,17 @@ tag:

В файле ввода установите `extends: hopeTheme(options)`, чтобы расширить тему `vuepress-theme-hope`.

The aliases of the same name (`alias`) and layouts (`layouts`) of your own newly created theme has higher priority over the extended theme `vuepress-theme-hope`, which means that you can override `vuepress-theme-hope` components via `alias` option in theme api, and you can add or override layouts via `layouts` in client config file.
Одноименные псевдонимы (`alias`) и макеты (`layouts`) вашей собственной только что созданной темы имеют более высокий приоритет по сравнению с расширенной темой `vuepress-theme-hope`, что означает, что вы можете переопределить `vuepress-theme-hope` через опцию `alias` в API темы, и вы можете добавлять или переопределять макеты через `layouts` в конфигурационном файле клиента.

The theme provide the following layouts:
Тема предоставляет следующие макеты:

- Layout
- NotFound
- Slide (Only available when presentation is enabled)
- BlogCategory (Only available when blog is enabled)
- BlogHome (Only available when blog is enabled)
- BlogType (Only available when blog is enabled)
- Timeline (Only available when blog is enabled)
- Slide (Доступно только при включенной презентации)
- BlogCategory (Доступно только при включенном блоге)
- BlogHome (Доступно только при включенном блоге)
- BlogType (Доступно только при включенном блоге)
- Timeline (Доступно только при включенном блоге)

::: code-tabs#language

Expand Down
20 changes: 10 additions & 10 deletions src/cookbook/customize/README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
---
title: Customize
title: Кастомизация
icon: gear
dir:
order: 4
category:
- Cookbook
- Customize
- Учебник с примерами
- Кастомизация
tag:
- Customize
- Кастомизация
article: false
---

This section shows you the relevant codes involved in common customization.
В этом разделе показаны соответствующие коды, участвующие в общей настройке.

<!-- more -->

Expand All @@ -29,12 +29,12 @@ This section shows you the relevant codes involved in common customization.

Полный список конфигураций, поддерживаемых указанными выше файлами, смотрите в [Конфиг → Стиль](../../config/style.md).

## Details
## Детали

- [Customizing layouts](./layout.md)
- [Кастомизация макетов](./layout.md)

- [Customizing colors](./color.md)
- [Кастомизация цветов](./color.md)

- [Customizing fonts](./font.md)
- [Кастомизация шрифтов](./font.md)

- [Customizing effects](./effect.md)
- [Кастомизация эффектов](./effect.md)
32 changes: 16 additions & 16 deletions src/cookbook/customize/color.md
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
---
title: Customize color
title: Кастомизация цветов
icon: palette
category:
- Cookbook
- Customize
- Учебник с примерами
- Кастомизация
tag:
- Customize
- Кастомизация
---

This page guides you how to customize theme colors.
На этой странице вы узнаете, как настроить цвета темы.

<!-- more -->

## Modify the built-in color
## Изменить встроенный цвет

The theme controls the color through the palette, you may need to set your color in two situations:
Тема управляет цветом через палитру, вам может понадобиться установить свой цвет в двух случаях:

1. This color remains the same in day mode and night mode, like theme color.
2. This color is different in day mode, night mode, such as background color, font, border color, etc.
1. Этот цвет остается одинаковым в дневном и ночном режимах, как и цвет темы.
2. Этот цвет отличается в дневном и ночном режимах, например, цвет фона, шрифт, цвет границы и т. д.

The palette file is the `.vuepress/styles/palette.scss` file under the VuePress project folder.
Файл палитры — это файл `.vuepress/styles/palette.scss` в папке проекта VuePress.

For the former, you need to write variable values in `palette.scss`, e.g.:
Для первого вам нужно записать значения переменных в `palette.scss`, например:

```scss
// .vuepress/styles/palette.scss
$theme-color: #3eaf7c;
```

For the latter, you need to set up a Map with key names `light` and `dark`, and values as color values, e.g.:
Для последнего вам необходимо настроить карту с ключевыми именами `light` и `dark`, и значениями в качестве значений цвета, например:

```scss
// .vuepress/styles/palette.scss
Expand All @@ -38,11 +38,11 @@ $bg-color: (
);
```

See [Theme ConfigurationColor Settings](../../config/style.md#color-config) for all available color variables.
Смотрите [Конфигурация темыНастройки цвета](../../config/style.md#color-config) для всех доступных цветовых переменных.

## Modify other colors
## Изменить другие цвета

Sometimes, you may want to modify some colors that are not in `palette.scss`, such as the background color of the code block. At this time, you can check whether the corresponding color attribute value is a CSS variable through the devTools. If so, you can go to `index.scss` to manually override this variable value:
Иногда вам может понадобиться изменить некоторые цвета, которых нет в `palette.scss`, например цвет фона блока кода. В настоящее время вы можете проверить, является ли соответствующее значение атрибута цвета переменной CSS с помощью devTools. Если это так, вы можете перейти к `index.scss`, чтобы вручную переопределить это значение переменной:

```scss
// .vuepress/styles/index.scss
Expand All @@ -57,7 +57,7 @@ Sometimes, you may want to modify some colors that are not in `palette.scss`, su
}
```

If not, write your own selectors to override them:
Если нет, напишите свои собственные селекторы, чтобы переопределить их:

```scss
// .vuepress/styles/index.scss
Expand Down
44 changes: 22 additions & 22 deletions src/cookbook/customize/effect.md
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
---
title: Customize Effects
title: Кастомизация эффектов
icon: wand-magic-sparkles
category:
- Cookbook
- Customize
- Учебник с примерами
- Кастомизация
tag:
- Customize
- Кастомизация
---

This tutorial guides you how to customize theme effects.
В этом руководстве вы узнаете, как настроить эффекты темы.

<!-- more -->

## Clear Effects
## Очистка эффектов

By default the theme will:
По умолчанию тема будет:

- Use color list to decorate categories and tags
- Add animation when switching pages and elements
- Add ease-in animations to homepage elements, and add hovering effects to features.
- Use a more fancy code copy button
- Use fancy tooltips.
- Added fade-in when switching between day mode and night mode
- Использовать список цветов для украшения категорий и тегов
- Добавлять анимацию при переключении страниц и элементов
- Добавлять анимацию к элементам домашней страницы и добавлять эффекты наведения к функциям
- Использовать более причудливую кнопку копирования кода
- Использовать причудливые всплывающие подсказки
- Добавлять затухание при переключении между дневным и ночным режимами

If you need to remove these fancy styles, please set `pure: true` in the theme options to enable pure mode.
Если вам нужно удалить эти причудливые стили, установите `pure: true` в параметрах темы, чтобы включить чистый режим.

Meanwhile, you can control the duration of the animation by controlling `$color-transition` and `transform-transition` in the palette file:
Между тем, вы можете контролировать продолжительность анимации, управляя `$color-transition` и `transform-transition` в файле палитры:

```scss
// .vuepress/styles/palette.scss
Expand All @@ -34,13 +34,13 @@ $color-transition: 0s;
$transform-transition: 0s;
```

## Adding Effects
## Добавление эффектов

You are free to add more effects to your site through config file options and client files provided by VuePress.
Вы можете добавлять дополнительные эффекты на свой сайт с помощью параметров файла конфигурации и клиентских файлов, предоставляемых VuePress.

- If you need to add global CSS and JS, please set `head` option in VuePress [config file](../vuepress/config.md).
- Если вам нужно добавить глобальные CSS и JS, установите параметр VuePress `head` в [файле конфигурации](../vuepress/config.md).

::: tip Example
::: tip Пример

```ts
// .vuepress/config.ts
Expand Down Expand Up @@ -81,7 +81,7 @@ You are free to add more effects to your site through config file options and cl

:::

- If you need to add page-level CSS and JS, please set `head` option in [Front Matter](../vuepress/page.md#frontmatter).
- Если вам нужно добавить CSS и JS на уровне страницы, установите параметр `head` в [Front Matter](../vuepress/page.md#frontmatter).

```md
---
Expand All @@ -97,12 +97,12 @@ You are free to add more effects to your site through config file options and cl
/* your style here */
---
Page content
Содержание страницы
...
```

- More global advanced operations can be done through [client configuration file](../vuepress/config.md#client-config).
- Более глобальные расширенные операции можно выполнять через [файл конфигурации клиента](../vuepress/config.md#client-config).

```ts
// .vuepress/client.ts
Expand Down
Loading

0 comments on commit 2a44bd0

Please sign in to comment.