feat: refs #7189 add Accept-Language header to axios requests #1111

Merged
jorgep merged 5 commits from 7189-setAcceptLanguage into dev 2024-12-19 09:22:17 +00:00
Member
No description provided.
jorgep added 1 commit 2024-12-18 15:43:50 +00:00
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details
bda4fe62af
feat: refs #7189 add Accept-Language header to axios requests
jorgep added 1 commit 2024-12-18 15:49:11 +00:00
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details
777bdec0c7
test: refs #7189 enable skipped test
jorgep requested review from alexm 2024-12-18 15:59:03 +00:00
jorgep added the
CR / Tests passed
label 2024-12-18 16:12:52 +00:00
jorgep added 1 commit 2024-12-18 16:15:47 +00:00
gitea/salix-front/pipeline/pr-dev This commit looks good Details
21ebc85405
test: refs #7189 add Accept-Language header to axios request tests
jorgep added 1 commit 2024-12-18 16:53:47 +00:00
gitea/salix-front/pipeline/pr-dev This commit looks good Details
adbb574025
fix: refs #7189 update user language on sessionStorage
jorgep reviewed 2024-12-18 16:56:36 +00:00
@ -93,1 +90,4 @@
await axios.patch(query, { lang: value });
user.value.lang = value;
useState().setUser(user.value);
Author
Member

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

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**
alexm marked this conversation as resolved
jorgep reviewed 2024-12-18 16:58:20 +00:00
@ -27,6 +26,7 @@ describe('Axios boot', () => {
expect(resultConfig).toEqual(
expect.objectContaining({
headers: {
'Accept-Language': 'en-US',
Author
Member

El por defecto que se pone aqui en los tests.

El por defecto que se pone aqui en los tests.
alexm approved these changes 2024-12-19 06:14:43 +00:00
jorgep added 1 commit 2024-12-19 09:21:23 +00:00
jorgep merged commit 9e686f6a25 into dev 2024-12-19 09:22:17 +00:00
jorgep deleted branch 7189-setAcceptLanguage 2024-12-19 09:22:17 +00:00
Sign in to join this conversation.
No reviewers
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: verdnatura/salix-front#1111
No description provided.