mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 07:37:25 +01:00
🐛 Update fetch language call to not retrieve from cache (#14099)
Co-authored-by: Ben Tran <bentran@Bens-Intel-MacBook-Pro.local>
This commit is contained in:
@@ -414,7 +414,15 @@ export default {
|
|||||||
this.$store.state.isUserLoaded = true;
|
this.$store.state.isUserLoaded = true;
|
||||||
Analytics.setUser();
|
Analytics.setUser();
|
||||||
Analytics.updateUser();
|
Analytics.updateUser();
|
||||||
return axios.get('/api/v4/i18n/browser-script', { language: this.user.preferences.language });
|
return axios.get('/api/v4/i18n/browser-script',
|
||||||
|
{
|
||||||
|
language: this.user.preferences.language,
|
||||||
|
headers: {
|
||||||
|
'Cache-Control': 'no-cache',
|
||||||
|
Pragma: 'no-cache',
|
||||||
|
Expires: '0',
|
||||||
|
},
|
||||||
|
});
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
const i18nData = window && window['habitica-i18n'];
|
const i18nData = window && window['habitica-i18n'];
|
||||||
this.$loadLocale(i18nData);
|
this.$loadLocale(i18nData);
|
||||||
|
|||||||
Reference in New Issue
Block a user