/**
 * Format a dimension value with locale-aware decimal separator.
 */
export function formatDimension(value: number, locale: string): string {
  return new Intl.NumberFormat(locale, {
    minimumFractionDigits: 0,
    maximumFractionDigits: 2,
  }).format(value);
}
