feat: localize membership tier display
All checks were successful
deploy-socialize / image (push) Successful in 1m11s
deploy-socialize / deploy (push) Successful in 19s

This commit is contained in:
2026-05-07 20:43:08 -04:00
parent 6d92119c9c
commit 7a8a0a44bf
17 changed files with 2937 additions and 72 deletions

View File

@@ -1,6 +1,7 @@
import axios from 'axios';
import { useAuthStore } from '@/features/auth/stores/authStore.js';
import config from '@/config.js';
import { i18n } from '@/plugins/i18n.js';
export function useClient() {
const client = axios.create({
@@ -36,6 +37,8 @@ export function useClient() {
config.headers.Authorization = `Bearer ${authStore.accessToken}`;
}
config.headers['Accept-Language'] = i18n.global.locale.value ?? 'en';
if (config.data instanceof FormData) {
console.log(`Data is FormData, removing explicit Content-Type header for: ${config.method?.toUpperCase()} ${config.url}`);
delete config.headers['Content-Type'];