Give option to go english only
parent
2aa973a692
commit
c92194dd56
|
@ -115,6 +115,10 @@
|
|||
},
|
||||
"defaultLocale": {
|
||||
"type": "string"
|
||||
},
|
||||
"enableLanguages": {
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
|
|
|
@ -161,5 +161,6 @@
|
|||
"Leave a comment?": "Lascia un commento?",
|
||||
"Cart contents": "Contenuto del carrello",
|
||||
"Shipping": "Spedizione:",
|
||||
"Empty cart": "Svuota carrello"
|
||||
"Empty cart": "Svuota carrello",
|
||||
"Payment ID": "Payment ID"
|
||||
}
|
|
@ -615,7 +615,7 @@ router.get('/:page?', async (req, res, next) => {
|
|||
message: clearSessionValue(req.session, 'message'),
|
||||
messageType: clearSessionValue(req.session, 'messageType'),
|
||||
pageCloseBtn: showCartCloseBtn('page'),
|
||||
config: req.app.config,
|
||||
config,
|
||||
productsPerPage: numberProducts,
|
||||
totalProductCount: results.totalProducts,
|
||||
pageNum: 1,
|
||||
|
|
|
@ -103,6 +103,7 @@
|
|||
</div>
|
||||
<div id="navbar" class="navbar-collapse collapse">
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
{{#ifCond @root.config.enableLanguages "!=" false}}
|
||||
<li class="dropdown">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">{{ @root.__ "Languages" }} <span class="caret"></span></a>
|
||||
<ul class="dropdown-menu">
|
||||
|
@ -111,6 +112,7 @@
|
|||
{{/availableLanguages}}
|
||||
</ul>
|
||||
</li>
|
||||
{{/ifCond}}
|
||||
{{#unless admin}}
|
||||
{{#ifCond page '!=' 'checkout'}}
|
||||
{{#ifCond page '!=' 'pay'}}
|
||||
|
|
Loading…
Reference in New Issue