Skip to content

Commit fdcb281

Browse files
committed
minor fixes
1 parent bad06c5 commit fdcb281

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,14 @@ Windows, Unix systems and macOS are supported. For Windows, you'll need to call
5252
5353
6. Run the site
5454
55-
Install local modules:
55+
First, install local modules:
5656
5757
```bash
5858
cd /js/server
5959
npm install
6060
```
6161
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:
6363
6464
```bash
6565
./edit en
@@ -76,6 +76,7 @@ Windows, Unix systems and macOS are supported. For Windows, you'll need to call
7676
> # Runs the server at http://127.0.0.1:8080
7777
> PORT=8080 ./edit en
7878
> ```
79+
> For Windows, read the note about environment variables below.
7980
8081
7. Edit the tutorial
8182
@@ -85,16 +86,16 @@ Windows, Unix systems and macOS are supported. For Windows, you'll need to call
8586
8687
# Windows: Environment variables
8788
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:
8990
9091
```bash
9192
cd /js/server
9293
cross-env PORT=8080 ./edit en
9394
```
9495
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.
9697

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`.
9899

99100
# Change server language
100101

@@ -115,7 +116,7 @@ Please note, the server must support that language. There must be corresponding
115116

116117
The text in SVG pictures can be translated as well.
117118

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`.
119120
120121
Here are the steps to translate images.
121122

0 commit comments

Comments
 (0)