feat: send language in payment requests for localized descriptions

- Add language field to balance topup and landing purchase requests
- Cap news article featured image height with max-h-96

Cherry-picked from PR #362 (without favicon change — files don't exist)
This commit is contained in:
Fringg
2026-03-29 05:18:40 +03:00
parent 07500ed215
commit 2b03e7e514
4 changed files with 6 additions and 1 deletions

View File

@@ -1,4 +1,5 @@
import apiClient from './client';
import i18n from '../i18n';
import type {
Balance,
Transaction,
@@ -54,6 +55,7 @@ export const balanceApi = {
amount_kopeks: number;
payment_method: string;
payment_option?: string;
language?: string;
} = {
amount_kopeks: amountKopeks,
payment_method: paymentMethod,
@@ -61,6 +63,7 @@ export const balanceApi = {
if (paymentOption) {
payload.payment_option = paymentOption;
}
payload.language = i18n.language || 'ru';
const response = await apiClient.post('/cabinet/balance/topup', payload);
return response.data;
},

View File

@@ -101,6 +101,7 @@ export interface PurchaseRequest {
gift_recipient_type?: 'email' | 'telegram';
gift_recipient_value?: string;
gift_message?: string;
language?: string;
}
export interface PurchaseResponse {