Skip to content

Commit 0bba226

Browse files
committed
adding tutorial lang variable and fix rtl reserved word check variable
1 parent 4ab91f8 commit 0bba226

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

dev

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
set -e
66

77
export NODE_LANG=$1
8-
export TUTORIAL_LANG=$1
8+
export TUTORIAL_LANG=$1
99
export NODE_ENV=development
1010
export ASSET_VERSIONING=query
1111
export WATCH=1

edit.cmd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
set NODE_LANG=%2
99
)
1010

11+
@set TUTORIAL_LANG=%1
1112
@set NODE_ENV=production
1213
@set TUTORIAL_EDIT=1
1314
@set ASSET_VERSIONING=query

modules/config/webpack.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ module.exports = function () {
199199
nib(),
200200
function (style) {
201201
style.define('lang', config.lang);
202-
style.define('rtl', ['ar','fa'].includes(process.env.TUTORIAL_LANG));
202+
style.define('isRtl', ['ar','fa'].includes(process.env.TUTORIAL_LANG));
203203
style.define('env', config.env);
204204
}
205205
]

modules/styles/blocks/body/body.styl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ body
88
color color
99
background background
1010
margin 0
11-
if rtl
11+
if isRtl
1212
background-color green
13+
direction rtl
1314

1415
@media print
1516
body

0 commit comments

Comments
 (0)