mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-28 17:43:47 +00:00
@@ -17117,9 +17117,14 @@
|
|||||||
|
|
||||||
const label = document.createElement('div');
|
const label = document.createElement('div');
|
||||||
label.className = 'payment-method-label';
|
label.className = 'payment-method-label';
|
||||||
const labelKey = `topup.method.${method.id}.title`;
|
// Используем name из API если есть, иначе локализацию
|
||||||
const labelValue = t(labelKey);
|
if (method.name) {
|
||||||
label.textContent = labelValue === labelKey ? method.id : labelValue;
|
label.textContent = method.name;
|
||||||
|
} else {
|
||||||
|
const labelKey = `topup.method.${method.id}.title`;
|
||||||
|
const labelValue = t(labelKey);
|
||||||
|
label.textContent = labelValue === labelKey ? method.id : labelValue;
|
||||||
|
}
|
||||||
|
|
||||||
const description = document.createElement('div');
|
const description = document.createElement('div');
|
||||||
description.className = 'payment-method-description';
|
description.className = 'payment-method-description';
|
||||||
|
|||||||
Reference in New Issue
Block a user