"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.t = t;
const en = {
    today: 'Today',
    lastNDays: (n) => `Last ${n} days`,
    tokenBreakdown: 'Token breakdown',
    tokenBreakdownToday: 'Token breakdown (Today)',
    trend: 'Trend',
    topModel: 'Top Model',
    topTool: 'Top Tool',
    sessions: 'Sessions',
    settings: 'Settings',
    theme: 'Theme',
    timeRange: 'Time range',
    refreshInterval: 'Refresh interval',
    display: 'Display',
    currency: 'Currency',
    exchangeRate: 'Exchange rate',
    exchangeRateUpdated: (time) => `Updated ${time}`,
    exchangeRateUnavailable: 'Exchange rate unavailable',
    language: 'Language',
    showCost: 'Show cost',
    tokenBreakdownToggle: 'Token breakdown',
    activityChart: 'Activity chart',
    syncedAt: (time) => `Synced ${time}`,
    themeSystem: 'System',
    themeLight: 'Light',
    themeDark: 'Dark',
    showPanel: 'Show Panel',
    openDashboard: 'Open Dashboard',
    refresh: 'Refresh',
    quit: 'Quit',
    close: 'Close',
    installTitle: 'Dashboard Setup',
    installPreparing: 'Preparing...',
    installInstalling: 'Installing @juliantanx/aiusage...',
    installLaunching: 'Starting dashboard...',
    installDone: 'Done! Opening...',
    installFailed: 'Installation failed',
};
const zh = {
    today: '今日',
    lastNDays: (n) => `近 ${n} 天`,
    tokenBreakdown: 'Token 分布',
    tokenBreakdownToday: 'Token 分布 (今日)',
    trend: '趋势',
    topModel: '常用模型',
    topTool: '常用工具',
    sessions: '会话数',
    settings: '设置',
    theme: '主题',
    timeRange: '时间范围',
    refreshInterval: '刷新间隔',
    display: '显示',
    currency: '币种',
    exchangeRate: '汇率',
    exchangeRateUpdated: (time) => `更新于 ${time}`,
    exchangeRateUnavailable: '汇率不可用',
    language: '语言',
    showCost: '显示费用',
    tokenBreakdownToggle: 'Token 分布',
    activityChart: '活动图表',
    syncedAt: (time) => `同步于 ${time}`,
    themeSystem: '跟随系统',
    themeLight: '浅色',
    themeDark: '深色',
    showPanel: '显示面板',
    openDashboard: '打开仪表盘',
    refresh: '刷新',
    quit: '退出',
    close: '关闭',
    installTitle: '仪表盘配置',
    installPreparing: '准备中...',
    installInstalling: '正在安装 @juliantanx/aiusage...',
    installLaunching: '正在启动仪表盘...',
    installDone: '完成！正在打开...',
    installFailed: '安装失败',
};
const translations = { en, zh };
function t(locale) {
    return translations[locale] ?? translations.en;
}
