import type { RegionName } from './types';

/**
 * Picks the locale-appropriate name for a reference region. `fa` is the default locale; any
 * non-`en` locale reads the Persian name. Kept here (not in a component) so the address book,
 * the coverage editor, and search all label regions identically.
 */
export function pickRegionName(region: RegionName, locale: string): string {
  return locale === 'en' ? region.nameEn : region.nameFa;
}
