mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 22:27:26 +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:
@@ -125,7 +125,6 @@
|
||||
|
||||
<script>
|
||||
import axios from 'axios';
|
||||
import Bluebird from 'bluebird';
|
||||
import moment from 'moment';
|
||||
import cloneDeep from 'lodash/cloneDeep';
|
||||
import { mapState } from 'client/libs/store';
|
||||
@@ -203,7 +202,7 @@ export default {
|
||||
}
|
||||
});
|
||||
|
||||
let results = await Bluebird.all(promises);
|
||||
let results = await Promise.all(promises);
|
||||
results.forEach(result => {
|
||||
let userData = result.data.data;
|
||||
this.$set(this.cachedProfileData, userData._id, userData);
|
||||
|
||||
Reference in New Issue
Block a user