feature: localization's first implmentation

This commit is contained in:
2026-06-20 12:37:38 +03:30
parent b314a5fa11
commit 284fbd08aa
46 changed files with 1860 additions and 643 deletions

View File

@@ -53,6 +53,13 @@ export const authApi = {
await apiClient.post('/auth/logout');
},
updateLanguage: async (
language: string,
): Promise<{ success: boolean; data: { user: { language: string } } }> => {
const response = await apiClient.patch('/auth/profile/language', { language });
return response.data;
},
// Refresh token
refreshToken: async (refreshToken: string): Promise<{ accessToken: string }> => {
const response = await apiClient.post('/auth/refresh', { refreshToken });