Skip to content

Commit c61775a

Browse files
authored
docs(ru): update translations (#4323)
* Update ru/reference/site-config.md * Update ru/guide/using-vue.md
1 parent 67b7d5d commit c61775a

File tree

2 files changed

+35
-1
lines changed

2 files changed

+35
-1
lines changed

docs/ru/guide/using-vue.md

+34
Original file line numberDiff line numberDiff line change
@@ -251,3 +251,37 @@ import ComponentInHeader from '../../components/ComponentInHeader.vue'
251251
padding: 0 20px;
252252
}
253253
</style>
254+
255+
256+
## Поддержка VS Code IntelliSense
257+
258+
<!-- Based on https://github.com/vuejs/language-tools/pull/4321 -->
259+
260+
Vue предоставляет поддержку IntelliSense из коробки через [официальный плагин Vue для VS Code](https://marketplace.visualstudio.com/items?itemName=Vue.volar). Однако, чтобы включить её для файлов `.md`, вам нужно внести некоторые изменения в файлы конфигурации.
261+
262+
1. Добавьте шаблон `.md` в параметры `include` и `vueCompilerOptions.vitePressExtensions` в файле tsconfig/jsconfig:
263+
264+
::: code-group
265+
```json [tsconfig.json]
266+
{
267+
"include": [
268+
"docs/**/*.ts",
269+
"docs/**/*.vue",
270+
"docs/**/*.md",
271+
],
272+
"vueCompilerOptions": {
273+
"vitePressExtensions": [".md"],
274+
},
275+
}
276+
```
277+
:::
278+
279+
2. Добавьте `markdown` в параметр `vue.server.includeLanguages` в настройках VS Code:
280+
281+
::: code-group
282+
```json [.vscode/settings.json]
283+
{
284+
"vue.server.includeLanguages": ["vue", "markdown"]
285+
}
286+
```
287+
:::

docs/ru/reference/site-config.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ export default {
387387

388388
### srcExclude {#srcexclude}
389389

390-
- Тип: `string`
390+
- Тип: `string[]`
391391
- По умолчанию: `undefined`
392392

393393
[Шаблон](https://github.com/mrmlnc/fast-glob#pattern-syntax) для поиска файлов, которые должны быть исключены из исходного содержимого.

0 commit comments

Comments
 (0)