Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(ru): start ru translation #2570

Open
wants to merge 38 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 22 commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
2d5f757
start ru translation
VisualYuki Dec 18, 2024
b14960d
docs(ru): add `forms` page, check spelling
VisualYuki Dec 22, 2024
a4d5562
docs(ru): add `passing-data` page
VisualYuki Dec 23, 2024
dd67cd1
add 'easy-to-test' page
VisualYuki Dec 26, 2024
072cd79
add 'slots' page
VisualYuki Dec 27, 2024
7a81ab7
add 'asynchronous-behavior' page
VisualYuki Dec 29, 2024
c632c7b
add `http-requests`
VisualYuki Dec 30, 2024
143530b
add `transitions` & `community-learning` pages
VisualYuki Dec 31, 2024
6f1dceb
add `component instance` page
VisualYuki Jan 1, 2025
94731f4
add `reusability and composition` page
VisualYuki Jan 3, 2025
09f24a1
add `testing v-model` page
VisualYuki Jan 3, 2025
935bd04
add `vuex` page
VisualYuki Jan 6, 2025
56b7334
add `teleport` page
VisualYuki Jan 7, 2025
13c373e
add `vue-router` page
VisualYuki Jan 9, 2025
b01d5fd
add `ssr` page
VisualYuki Jan 10, 2025
f5609af
add `stubs and shallow mount` page
VisualYuki Jan 14, 2025
1d65751
add `api` page to avoid errors
VisualYuki Jan 14, 2025
cccd0fb
add `api` page
VisualYuki Jan 20, 2025
94dedf7
add `plugin` page
VisualYuki Jan 21, 2025
fde0982
add `faq` page
VisualYuki Jan 22, 2025
4f3ce4b
add `migration` page
VisualYuki Jan 23, 2025
3d0ad4a
fixes
VisualYuki Jan 23, 2025
3fd69e2
Update docs/ru/guide/advanced/async-suspense.md
VisualYuki Jan 24, 2025
4ebfd41
Update docs/ru/guide/advanced/async-suspense.md
VisualYuki Jan 24, 2025
8fee057
Update docs/ru/guide/advanced/async-suspense.md
VisualYuki Jan 24, 2025
171591c
Update docs/ru/guide/advanced/transitions.md
VisualYuki Jan 24, 2025
c695ada
Update docs/ru/guide/advanced/vue-router.md
VisualYuki Jan 24, 2025
6a9f152
Update docs/ru/guide/advanced/vuex.md
VisualYuki Jan 24, 2025
34f05d4
Update docs/ru/guide/advanced/vue-router.md
VisualYuki Jan 24, 2025
f6a891d
Update docs/ru/guide/advanced/vuex.md
VisualYuki Jan 24, 2025
638269d
Update docs/ru/guide/essentials/a-crash-course.md
VisualYuki Jan 24, 2025
db2e7fc
Update docs/ru/guide/essentials/a-crash-course.md
VisualYuki Jan 24, 2025
519f7d2
Update docs/ru/guide/essentials/event-handling.md
VisualYuki Jan 24, 2025
75bc2ba
Update docs/ru/guide/index.md
VisualYuki Jan 26, 2025
59177ca
Update docs/ru/guide/index.md
VisualYuki Jan 26, 2025
5bc6635
Update docs/ru/guide/essentials/forms.md
VisualYuki Jan 26, 2025
4c56973
Update docs/ru/guide/index.md
VisualYuki Jan 26, 2025
5077799
Update docs/ru/guide/advanced/vue-router.md
VisualYuki Jan 26, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions docs/.vitepress/config/index.mts
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,21 @@ import { frConfig } from './fr.mts'
import { zhConfig } from './zh.mts'
import { sharedConfig } from './shared.mts'
import { defineConfig } from 'vitepress'
import { ruConfig } from './ru.mts'

export default defineConfig({
...sharedConfig,

locales: {
root: { label: 'English', lang: 'en-US', link: '/', ...enConfig },
fr: { label: 'Français', lang: 'fr-FR', link: '/fr/', ...frConfig },
zh: { label: '简体中文 (校对中)', lang: 'zh-CN', link: '/zh/', ...zhConfig }
}
zh: {
label: '简体中文 (校对中)',
lang: 'zh-CN',
link: '/zh/',
...zhConfig
},
ru: { label: 'Русский', lang: 'ru-RU', link: '/ru/', ...ruConfig }
},

})
128 changes: 128 additions & 0 deletions docs/.vitepress/config/ru.mts
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
import type { DefaultTheme, LocaleSpecificConfig } from 'vitepress'
export const META_URL = ''
export const META_TITLE = 'Vue Test Utils'
export const META_DESCRIPTION = 'Официальный набор инструментов тестирования для Vue.js 3'

export const ruConfig: LocaleSpecificConfig<DefaultTheme.Config> = {
description: META_DESCRIPTION,
head: [
['meta', { property: 'og:url', content: META_URL }],
['meta', { property: 'og:title', content: META_TITLE }],
['meta', { property: 'og:description', content: META_DESCRIPTION }],
['meta', { property: 'twitter:url', content: META_URL }],
['meta', { property: 'twitter:title', content: META_TITLE }],
['meta', { property: 'twitter:description', content: META_DESCRIPTION }]
],
themeConfig: {
docFooter: {
prev: 'Предыдущая',
next: 'Следующая',
},
outlineTitle: "Содержание",
editLink: {
pattern: 'https://github.com/vuejs/test-utils/edit/main/docs/:path',
text: 'Предложить перевод страницы на GitHub'
},
nav: [
{ text: 'Руководство', link: '/ru/guide/' },
{ text: 'API', link: '/ru/api/' },
{ text: 'Миграция с Vue 2', link: '/ru/migration/' },
{
text: 'Changelog',
link: 'https://github.com/vuejs/test-utils/releases'
}
],
sidebar: {
'/': [
{
text: 'Установка',
link: '/ru/installation/'
},
{
text: 'Основы',
items: [
{ text: 'Приступая к изучению', link: '/ru/guide/' },
{
text: 'Ускоренный курс',
link: '/ru/guide/essentials/a-crash-course'
},
{
text: 'Условная отрисовка',
link: '/ru/guide/essentials/conditional-rendering'
},
{
text: 'Тестирование генерации событий',
link: '/ru/guide/essentials/event-handling'
},
{ text: 'Тестирование форм', link: '/ru/guide/essentials/forms' },
{
text: 'Передача данных в компоненты',
link: '/ru/guide/essentials/passing-data'
},
{
text: 'Пишем компоненты для легкого тестирования',
link: '/ru/guide/essentials/easy-to-test'
}
]
},
{
text: 'Углубленно',
items: [
{ text: 'Слоты', link: '/ru/guide/advanced/slots' },
{
text: 'Асинхронное поведение',
link: '/ru/guide/advanced/async-suspense'
},
{
text: 'Выполнение HTTP запросов',
link: '/ru/guide/advanced/http-requests'
},
{ text: 'Transitions', link: '/ru/guide/advanced/transitions' },
{
text: 'Экземпляр компонента',
link: '/ru/guide/advanced/component-instance'
},
{
text: 'Переиспользование и композиция',
link: '/ru/guide/advanced/reusability-composition'
},
{ text: 'Тестирование v-model', link: '/ru/guide/advanced/v-model' },
{ text: 'Тестирование Vuex', link: '/ru/guide/advanced/vuex' },
{ text: 'Тестирование Vue Router', link: '/ru/guide/advanced/vue-router' },
{ text: 'Тестирование Teleport', link: '/ru/guide/advanced/teleport' },
{
text: 'Заглушки и неглубокий Mount',
link: '/ru/guide/advanced/stubs-shallow-mount'
},
{
text: 'Тестирование Server-side Rendering',
link: '/ru/guide/advanced/ssr'
}
]
},
{
text: 'Дополнительные темы',
items: [
{ text: 'Плагины', link: '/ru/guide/extending-vtu/plugins' },
{
text: 'Сообщество и обучение',
link: '/ru/guide/extending-vtu/community-learning'
}
]
},
{
text: 'Ответы на вопросы',
link: '/ru/guide/faq/'
},
{
text: 'Миграция с Vue 2',
link: '/ru/migration/'
},
{
text: 'API руководство',
link: '/ru/api/'
}
]
}
}
}
3 changes: 2 additions & 1 deletion docs/.vitepress/theme/index.mts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ import status from '../translation-status.json'
import './custom.css'
const i18nLabels = {
fr: 'La traduction est synchronisée avec les docs du ${date} dont le hash du commit est <code>${hash}</code>.',
zh: '该翻译已同步到了 ${date} 的版本,其对应的 commit hash 是 <code>${hash}</code>。<br /><mark>同时该文档仍处于校对中,如有任何疑问或想参与校对工作,请<a href="https://github.com/vuejs/test-utils/issues/2561" target="_blank" style="font-weight: bold; text-decoration: underline;">移步这里</a>了解更多。</mark>'
zh: '该翻译已同步到了 ${date} 的版本,其对应的 commit hash 是 <code>${hash}</code>。<br /><mark>同时该文档仍处于校对中,如有任何疑问或想参与校对工作,请<a href="https://github.com/vuejs/test-utils/issues/2561" target="_blank" style="font-weight: bold; text-decoration: underline;">移步这里</a>了解更多。</mark>',
ru: "Последняя дата обновления документации: ${date}"
}


Expand Down
4 changes: 4 additions & 0 deletions docs/.vitepress/translation-status.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,9 @@
"zh": {
"hash": "7c55128",
"date": "2024-11-28"
},
"ru": {
"hash": "96ef276",
"date": "2024-12-09"
}
}
Loading