fix: show locations count instead of servers on tariff cards

servers_count already represents squad count on backend.
Renamed display labels to "locations" on tariff cards and
confirmation view. Server names still shown in subscription card.
This commit is contained in:
Fringg
2026-02-18 09:25:44 +03:00
parent 98ab1099b9
commit ecc089da64
5 changed files with 13 additions and 2 deletions

View File

@@ -243,6 +243,9 @@
"serversLabel": "Servers", "serversLabel": "Servers",
"servers_one": "{{count}} server", "servers_one": "{{count}} server",
"servers_other": "{{count}} servers", "servers_other": "{{count}} servers",
"locationsLabel": "Locations",
"locations_one": "{{count}} location",
"locations_other": "{{count}} locations",
"traffic": "Traffic", "traffic": "Traffic",
"unlimited": "Unlimited", "unlimited": "Unlimited",
"used": "Used", "used": "Used",

View File

@@ -239,6 +239,8 @@
"baseTariff": "تعرفه", "baseTariff": "تعرفه",
"serversLabel": "سرورها", "serversLabel": "سرورها",
"servers_other": "{{count}} سرور", "servers_other": "{{count}} سرور",
"locationsLabel": "مکان‌ها",
"locations_other": "{{count}} مکان",
"traffic": "ترافیک", "traffic": "ترافیک",
"unlimited": "نامحدود", "unlimited": "نامحدود",
"used": "استفاده شده", "used": "استفاده شده",

View File

@@ -257,6 +257,10 @@
"servers_one": "{{count}} сервер", "servers_one": "{{count}} сервер",
"servers_few": "{{count}} сервера", "servers_few": "{{count}} сервера",
"servers_many": "{{count}} серверов", "servers_many": "{{count}} серверов",
"locationsLabel": "Локации",
"locations_one": "{{count}} локация",
"locations_few": "{{count}} локации",
"locations_many": "{{count}} локаций",
"traffic": "Трафик", "traffic": "Трафик",
"unlimited": "Безлимит", "unlimited": "Безлимит",
"used": "Использовано", "used": "Использовано",

View File

@@ -239,6 +239,8 @@
"baseTariff": "套餐", "baseTariff": "套餐",
"serversLabel": "服务器", "serversLabel": "服务器",
"servers_other": "{{count}} 个服务器", "servers_other": "{{count}} 个服务器",
"locationsLabel": "位置",
"locations_other": "{{count}} 个位置",
"traffic": "流量", "traffic": "流量",
"unlimited": "无限", "unlimited": "无限",
"used": "已使用", "used": "已使用",

View File

@@ -2396,7 +2396,7 @@ export default function Subscription() {
/> />
</svg> </svg>
<span className="text-dark-300"> <span className="text-dark-300">
{t('subscription.servers', { count: tariff.servers_count })} {t('subscription.locations', { count: tariff.servers_count })}
</span> </span>
</div> </div>
</div> </div>
@@ -2596,7 +2596,7 @@ export default function Subscription() {
</span> </span>
</div> </div>
<div> <div>
<span className="text-dark-500">{t('subscription.serversLabel')}:</span> <span className="text-dark-500">{t('subscription.locationsLabel')}:</span>
<span className="ml-2 text-dark-200">{selectedTariff.servers_count}</span> <span className="ml-2 text-dark-200">{selectedTariff.servers_count}</span>
</div> </div>
</div> </div>