diff --git a/frontend/src/api/client.ts b/frontend/src/api/client.ts index 3aac41a6..0aafd893 100644 --- a/frontend/src/api/client.ts +++ b/frontend/src/api/client.ts @@ -5,6 +5,7 @@ import axios, { AxiosInstance, AxiosError, InternalAxiosRequestConfig } from 'axios' import type { ApiResponse } from '@/types' +import { getLocale } from '@/i18n' // ==================== Axios Instance Configuration ==================== @@ -27,6 +28,12 @@ apiClient.interceptors.request.use( if (token && config.headers) { config.headers.Authorization = `Bearer ${token}` } + + // Attach locale for backend translations + if (config.headers) { + config.headers['Accept-Language'] = getLocale() + } + return config }, (error) => { diff --git a/frontend/src/components/account/AccountStatusIndicator.vue b/frontend/src/components/account/AccountStatusIndicator.vue index 914678a5..2783dbd9 100644 --- a/frontend/src/components/account/AccountStatusIndicator.vue +++ b/frontend/src/components/account/AccountStatusIndicator.vue @@ -52,7 +52,7 @@