feat: refs #7189 add Accept-Language header to axios requests #1111
No reviewers
Labels
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: verdnatura/salix-front#1111
Loading…
Reference in New Issue
No description provided.
Delete Branch "7189-setAcceptLanguage"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ -93,1 +90,4 @@
await axios.patch(query, { lang: value });
user.value.lang = value;
useState().setUser(user.value);
Si no, en el SessionStorage sigue con el valor anterior y al recargar la página los archivos del boot se ejecutan con navigator.language
@ -27,6 +26,7 @@ describe('Axios boot', () => {
expect(resultConfig).toEqual(
expect.objectContaining({
headers: {
'Accept-Language': 'en-US',
El por defecto que se pone aqui en los tests.