Skip to content

Make Codex and Claude Code subscriptions go further: a local model router that gives routine agent work to economical models and keeps your strongest model for the hard parts.

328 B
Raw Blame
const currencySymbols: Record<string, string> = {
  CNY: '¥',
  RMB: '¥',
  USD: '$',
  EUR: '€',
  GBP: '£',
  JPY: '¥',
};

export function formatMoney(currency: string, amount: string): string {
  const normalized = currency.trim().toUpperCase();
  return `${currencySymbols[normalized] ?? `${currency} `}${amount}`;
}