Add load balancer marker for inbound country flag
Reserved CountryCode "XX" (Inbound.BalancerCountryCode) marks an inbound behind a load balancer whose exit country is unknown: the site shows a Shuffle icon with a tooltip instead of a flag, the bot shows 🔀. Admin can pick it in the publish dialog. Fits the existing column, no migration. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
81562b5c56
commit
e979adca57
9 files changed
+48
-6
No files matched your search
@@ -17,6 +17,10 @@ export const FLAGS: Record<string, FlagComponent> = {
|
||||
|
||||
export const COUNTRY_CODES = Object.keys(FLAGS)
|
||||
|
||||
/** Зарезервированный код «инбаунд за балансировщиком, страна выхода неизвестна» (см.
|
||||
* Inbound.BalancerCountryCode на бэкенде) — вместо флага рисуется значок балансира. */
|
||||
export const BALANCER_COUNTRY_CODE = 'XX'
|
||||
|
||||
/** Локализованное имя страны по ISO-коду (Intl), без собственных переводов. */
|
||||
export function countryName(code: string, language: string): string {
|
||||
try {
|
||||
|
||||
Reference in new issue
Block a user