uzb-d3-map
Version:
A flexible, customizable SVG map component for Uzbekistan built with D3 and React
24 lines • 731 B
TypeScript
import type { Locale } from "./types";
/**
* Region translations for all supported locales
*/
export type RegionTranslations = {
"uz-cyrl": string;
"uz-latn": string;
ru: string;
en: string;
};
/**
* Region name translations
* Key is the region key (e.g., "35", "33", etc.)
*/
export declare const regionTranslations: Record<string, RegionTranslations>;
/**
* Get region name for a specific locale
* @param regionKey - The region key
* @param locale - The target locale
* @param fallback - Fallback name if translation not found
* @returns Translated region name
*/
export declare function getRegionName(regionKey: string, locale: Locale, fallback?: string): string;
//# sourceMappingURL=locales.d.ts.map