Skip to content

Commit ffcf920

Browse files
committed
minor
1 parent 6ae73b6 commit ffcf920

2 files changed

Lines changed: 6 additions & 9 deletions

File tree

README.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,9 @@ If you have an old copy of the English tutorial, please rename `1-js/05-data-typ
1414
1. Install [Git](https://git-scm.com/downloads) and [Node.JS](https://nodejs.org).
1515

1616
These are required to update and run the project.
17+
For non-Windows OS use standard install tools (packages or whatever convenient).
1718

1819
(Maybe later, optional) If you're going to change images, please install [GraphicsMagick](http://www.graphicsmagick.org/).
19-
20-
For non-Windows OS use standard install tools (packages or whatever convenient).
2120

2221
2. Install global Node modules:
2322

@@ -38,13 +37,12 @@ If you have an old copy of the English tutorial, please rename `1-js/05-data-typ
3837
3938
5. Clone the tutorial text into it.
4039
41-
The text repository has "-language" at the end, e.g:
40+
The text repository has `-language` at the end, e.g `ru`:
4241
```
4342
cd /js
4443
git clone https://github.com/iliakan/javascript-tutorial-ru
4544
```
4645
47-
4846
6. Run the site
4947
5048
Run the site with the language:
@@ -61,11 +59,9 @@ If you have an old copy of the English tutorial, please rename `1-js/05-data-typ
6159
6260
7. Edit the tutorial
6361
64-
The files are editable in the tutorial text folder (cloned at step 5).
65-
As you edit text files, the webpage gets reloaded automatically, so it's handy
66-
to split the screen at two sides: put the browser to the left half and edit in the right half.
62+
As you edit text files in the tutorial text repository (cloned at step 5),
63+
the webpage gets reloaded automatically.
6764
68-
6965
7066
# TroubleShooting
7167

modules/markit/plugins/resolveMdnSrc.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
*/
66

77
const tokenUtils = require('../utils/token');
8+
const lang = require('config').lang;
89

910
module.exports = function(md) {
1011

@@ -24,7 +25,7 @@ module.exports = function(md) {
2425
if (href.startsWith('mdn:')) {
2526
let parts = href.slice(4).split('/');
2627

27-
let locale = process.env.NODE_LANG == 'en' ? 'en-US' : process.env.NODE_LANG;
28+
let locale = lang == 'en' ? 'en-US' : lang;
2829

2930
let prefix = `https://developer.mozilla.org/${locale}/docs/Web`;
3031

0 commit comments

Comments
 (0)