You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-6Lines changed: 7 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,14 +52,14 @@ Windows, Unix systems and macOS are supported. For Windows, you'll need to call
52
52
53
53
6. Run the site
54
54
55
-
Install local modules:
55
+
First, install local modules:
56
56
57
57
```bash
58
58
cd /js/server
59
59
npm install
60
60
```
61
61
62
-
Run the site with the same language. Above we cloned `en` tutorial, so:
62
+
Run the site with the `./edit` command with the language argument. Above we cloned `en` tutorial, so:
63
63
64
64
```bash
65
65
./edit en
@@ -76,6 +76,7 @@ Windows, Unix systems and macOS are supported. For Windows, you'll need to call
76
76
> # Runs the server at http://127.0.0.1:8080
77
77
> PORT=8080 ./edit en
78
78
> ```
79
+
> For Windows, read the note about environment variables below.
79
80
80
81
7. Edit the tutorial
81
82
@@ -85,16 +86,16 @@ Windows, Unix systems and macOS are supported. For Windows, you'll need to call
85
86
86
87
# Windows: Environment variables
87
88
88
-
For Windows, please install `npm i -g cross-env` and prepend calls with `cross-env` to pass environment variables, like this:
89
+
For Windows, to pass environment variables, such as `PORT`, you can install `npm i -g cross-env` and prepend calls with `cross-env`, like this:
89
90
90
91
```bash
91
92
cd /js/server
92
93
cross-env PORT=8080 ./edit en
93
94
```
94
95
95
-
In the examples below, the commands are without `cross-env`, prepend it please if you're on Windows.
96
+
In the examples below, the commands are without `cross-env`, prepend it please, if you're on Windows.
96
97
97
-
Alternatively, you can use other Windows-specific ways to set environment variables, such as `set NODE_LANG=zh` and others.
98
+
Alternatively, you can use other Windows-specific ways to set environment variables, such as `set NODE_LANG=zh`.
98
99
99
100
# Change server language
100
101
@@ -115,7 +116,7 @@ Please note, the server must support that language. There must be corresponding
115
116
116
117
The text in SVG pictures can be translated as well.
117
118
118
-
There's a special script for that. The translated strings should be in the `images.yml` file in the repository root, such as <https://github.com/javascript-tutorial/ru.javascript.info/blob/master/images.yml>. The script replaces strings in all svgs according to its content.
119
+
There's a special script for that. The translated strings should be in the `images.yml` file in the repository root, such as <https://github.com/javascript-tutorial/ru.javascript.info/blob/master/images.yml>. The script replaces strings in all svgs according to `images.yml`.
0 commit comments