*** WIP *** Language switching works
public/javascripts/checklang.js - better description in comment views/chglang.pug - text for 'h1' changed routers/index.js - more comment views/index.pug - no more action on click at language package.json "version": "3.0.1", "date": "2023-04-17 13:00 UTC", public/stylesheets/style.sass - css for 'Loading' on first page locales/en/translation.json - type
This commit is contained in:
+3
-1
@@ -13,7 +13,9 @@ const renderOpts = (sid) => {
|
||||
}
|
||||
}
|
||||
|
||||
/* GET home page. */
|
||||
/* GET home page. If there is no parameter 'lng=xx', checke stored language and call
|
||||
te page again wird correct language (chglang.js))
|
||||
*/
|
||||
router.get('/', function(req, res, next) {
|
||||
// req.i18n.changeLanguage('de')
|
||||
if(req.query.lng === undefined) {
|
||||
|
||||
Reference in New Issue
Block a user