-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add option to change language of the site #138
Conversation
app.js
Outdated
@@ -2,23 +2,32 @@ const path = require('path') | |||
const express = require('express') | |||
const hbs = require('express-handlebars') | |||
const router = require('./routes/index.js') | |||
const text = require('./text.js').english | |||
var bodyParser = require('body-parser') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why using var instead of const
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done!
|
||
const pubPath = path.join(__dirname, './', 'public') | ||
|
||
app.use(bodyParser.urlencoded({extended: false})) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what this line do ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it means post requests are parsed automatically or something
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
relates to issue #134 #100 #20