Skip to content

Commit c4f24ce

Browse files
authored
docs(ru): Translation update (#3231)
* docs: [RU] Translation update * README.md обновление * navigation.md fix * consistent code blocks * dynamic-matching.md add new section * dynamic-matching.md fix * navigation-guards.md fix title * data-fetching.md fix * README.md fix * (docs) [RU] Translation update * fix typo * navigation-guards.md update * redirect-and-alias.md update * change '$route' to $route * date-fetching.md formatting * histort-mode.md update * navigation-guards.md update * navigation-guards.md update * navigation-guards.md fix example * api.md added aria-current-value * installation.md update * history-mode.md update Co-authored-by: Alex Sokolov <[email protected]>
1 parent c1df447 commit c4f24ce

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

Diff for: docs/ru/guide/essentials/history-mode.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ const fs = require('fs')
5252
const httpPort = 80
5353

5454
http.createServer((req, res) => {
55-
fs.readFile('index.htm', 'utf-8', (err, content) => {
55+
fs.readFile('index.html', 'utf-8', (err, content) => {
5656
if (err) {
57-
     console.log('Невозможно открыть файл "index.htm".')
57+
     console.log('Невозможно открыть файл "index.html".')
5858
}
5959

6060
res.writeHead(200, {

Diff for: docs/ru/installation.md

+8
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,14 @@ Vue.use(VueRouter)
3232

3333
Это не требуется при подключении через глобальный тег `script`.
3434

35+
## Vue CLI
36+
37+
Если проект развернут с использованием [Vue CLI](https://cli.vuejs.org/ru/), то можно добавить Vue Router в качестве плагина. Это позволит CLI сгенерировать код подключения, приведённый выше, а также добавить два маршрута для примера. **Операция установки перезапишет `App.vue`** в проекте, поэтому убедитесь что сделали резервную копию перед запуском команды:
38+
39+
```sh
40+
vue add router
41+
```
42+
3543
## Версия для разработки
3644

3745
Если вы хотите использовать самую новую dev-сборку `vue-router`, то придётся вручную склонировать репозиторий с GitHub и запустить сборку:

0 commit comments

Comments
 (0)