mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
Client: i18n (#8972)
* wip: client: i18n * remove maxAge from cookies to get same expiration ad localStorage * set cookies expiration to 10 years * moment: load translations in browser, moment: only load necessary data, remove jquery, remove bluebird * ability to change language * fix logout * add some requiresLogin: false to static pages * fix tests
This commit is contained in:
@@ -90,6 +90,7 @@ api.getFrontPage = {
|
||||
api.getNewClient = {
|
||||
method: 'GET',
|
||||
url: '/',
|
||||
noLanguage: true,
|
||||
async handler (req, res) {
|
||||
return res.sendFile('./dist-client/index.html', {root: `${__dirname}/../../../../`});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user