7.4 billion tokens per month. 34 free LLM providers. 635 free model endpoints. All behind one /v1 endpoint, plus any custom OpenAI-compatible endpoint. Smart routing, automatic failover, encrypted keys. Personal experimentation only.
TypeScript
feat(i18n): translate remaining FallbackPage strings
Tashfeen5123326f0b43
diff --git a/client/src/i18n/locales/en.json b/client/src/i18n/locales/en.jsonindex c8560399..0b57fa3e 100644--- a/client/src/i18n/locales/en.json+++ b/client/src/i18n/locales/en.json@@ -51,7 +51,9 @@"never": "never","loading": "Loading…","error": "Error",- "noData": "No data yet"+ "noData": "No data yet",+ "unsavedChanges": "Unsaved changes",+ "saveChanges": "Save changes"},"models": {"title": "Models",@@ -72,11 +74,23 @@"rpmLimit": "{count} rpm","rpdLimit": "{count} rpd","noKey": "no key",- "dragToReorder": "Drag to reorder"+ "dragToReorder": "Drag to reorder",+ "columnModel": "Model",+ "columnOn": "On",+ "noModelsBefore": "No models available. Add API keys on the ",+ "keysPageLink": "Keys page",+ "noModelsAfter": " first.",+ "hiddenNoKeys": "Hidden (no keys): {platforms}"},"strategies": {"title": "Routing strategy",- "description": "Pick how the router orders your fallback chain. Manual is the order you set; the rest are bandit strategies that learn from live traffic.",+ "description": "Pick a routing strategy. In Manual mode you drag to set the order; the other strategies route by live score across reliability, speed and intelligence.",+ "weightsSummary": "reliability {reliability}% · speed {speed}% · intelligence {intelligence}%",+ "guardrails": "Guardrails",+ "guardrailsTooltip": "Always-on guardrails: free-quota headroom × live rate-limit penalty. Below 1.0 means the model is being held back.",+ "scoreTooltip": "Final routing score = weighted average of the three axes, multiplied by the guardrails. Higher routes first.",+ "modeManualHint": "Manual mode: requests follow the order below, top-to-bottom. Drag to reorder.",+ "modeScoreHint": "Scores update from live traffic. The order below is how requests are routed right now.","manual": "Manual","manualBlurb": "Route in the exact order you set below. Drag the handles to reorder. No scoring; the chain is followed top-to-bottom.","balanced": "Balanced",diff --git a/client/src/i18n/locales/es.json b/client/src/i18n/locales/es.jsonindex 20900f9d..1c28a3f1 100644--- a/client/src/i18n/locales/es.json+++ b/client/src/i18n/locales/es.json@@ -51,7 +51,9 @@"never": "nunca","loading": "Cargando…","error": "Error",- "noData": "Aún no hay datos"+ "noData": "Aún no hay datos",+ "unsavedChanges": "Cambios sin guardar",+ "saveChanges": "Guardar cambios"},"models": {"title": "Modelos",@@ -72,11 +74,17 @@"rpmLimit": "{count} rpm","rpdLimit": "{count} rpd","noKey": "sin clave",- "dragToReorder": "Arrastra para reordenar"+ "dragToReorder": "Arrastra para reordenar",+ "columnModel": "Modelo",+ "columnOn": "Activo",+ "noModelsBefore": "No hay modelos disponibles. Añade claves API en la ",+ "keysPageLink": "página Claves",+ "noModelsAfter": " primero.",+ "hiddenNoKeys": "Ocultos (sin clave): {platforms}"},"strategies": {"title": "Estrategia de enrutamiento",- "description": "Elige cómo el enrutador ordena tu cadena de reserva. El modo manual sigue el orden que defines; las demás son estrategias bandit que aprenden del tráfico real.",+ "description": "Elige una estrategia de enrutamiento. En el modo manual, arrastra para definir el orden; las demás estrategias enrutan según una puntuación en vivo de fiabilidad, velocidad e inteligencia.","manual": "Manual","manualBlurb": "Enrutar en el orden exacto que definas abajo. Arrastra los controles para reordenar. Sin puntuación; la cadena se sigue de arriba abajo.","balanced": "Equilibrado",@@ -96,7 +104,13 @@"weightSpeed": "Velocidad","weightIntelligence": "Inteligencia","weightRequired": "Al menos un peso debe ser mayor que cero.",- "scoreColumn": "Puntuación"+ "scoreColumn": "Puntuación",+ "weightsSummary": "fiabilidad {reliability}% · velocidad {speed}% · inteligencia {intelligence}%",+ "guardrails": "Salvaguardas",+ "guardrailsTooltip": "Salvaguardas siempre activas: margen de cuota gratuita × penalización de límite de tasa en vivo. Por debajo de 1,0 el modelo está siendo frenado.",+ "scoreTooltip": "Puntuación de enrutamiento final = media ponderada de los tres ejes, multiplicada por las salvaguardas. La más alta se enruta primero.",+ "modeManualHint": "Modo manual: las solicitudes siguen el orden de abajo, de arriba abajo. Arrastra para reordenar.",+ "modeScoreHint": "Las puntuaciones se actualizan con el tráfico real. El orden de abajo es cómo se enrutan las solicitudes ahora mismo."},"keys": {"pageTitle": "Claves",diff --git a/client/src/i18n/locales/fr.json b/client/src/i18n/locales/fr.jsonindex 068ce9c3..d70a0422 100644--- a/client/src/i18n/locales/fr.json+++ b/client/src/i18n/locales/fr.json@@ -51,7 +51,9 @@"never": "jamais","loading": "Chargement…","error": "Erreur",- "noData": "Aucune donnée pour l'instant"+ "noData": "Aucune donnée pour l'instant",+ "unsavedChanges": "Modifications non enregistrées",+ "saveChanges": "Enregistrer les modifications"},"models": {"title": "Modèles",@@ -72,11 +74,17 @@"rpmLimit": "{count} rpm","rpdLimit": "{count} rpd","noKey": "aucune clé",- "dragToReorder": "Glisser pour réordonner"+ "dragToReorder": "Glisser pour réordonner",+ "columnModel": "Modèle",+ "columnOn": "Actif",+ "noModelsBefore": "Aucun modèle disponible. Ajoutez des clés API sur la ",+ "keysPageLink": "page Clés",+ "noModelsAfter": " au préalable.",+ "hiddenNoKeys": "Masqués (aucune clé) : {platforms}"},"strategies": {"title": "Stratégie de routage",- "description": "Choisissez comment le routeur ordonne votre chaîne de repli. Le mode manuel suit l'ordre que vous définissez ; les autres sont des stratégies bandit qui apprennent du trafic réel.",+ "description": "Choisissez une stratégie de routage. En mode manuel, glissez pour définir l'ordre ; les autres stratégies routent selon un score en direct combinant fiabilité, vitesse et intelligence.","manual": "Manuel","manualBlurb": "Routage dans l'ordre exact que vous définissez ci-dessous. Glissez les poignées pour réordonner. Aucun score ; la chaîne est suivie de haut en bas.","balanced": "Équilibré",@@ -96,7 +104,13 @@"weightSpeed": "Vitesse","weightIntelligence": "Intelligence","weightRequired": "Au moins une pondération doit être supérieure à zéro.",- "scoreColumn": "Score"+ "scoreColumn": "Score",+ "weightsSummary": "fiabilité {reliability}% · vitesse {speed}% · intelligence {intelligence}%",+ "guardrails": "Garde-fous",+ "guardrailsTooltip": "Garde-fous permanents : marge de quota gratuit × pénalité de limite de débit en direct. En dessous de 1,0, le modèle est freiné.",+ "scoreTooltip": "Score de routage final = moyenne pondérée des trois axes, multipliée par les garde-fous. Le plus élevé est routé en premier.",+ "modeManualHint": "Mode manuel : les requêtes suivent l'ordre ci-dessous, de haut en bas. Glissez pour réordonner.",+ "modeScoreHint": "Les scores se mettent à jour à partir du trafic réel. L'ordre ci-dessous correspond au routage actuel."},"keys": {"pageTitle": "Clés",diff --git a/client/src/i18n/locales/pt-BR.json b/client/src/i18n/locales/pt-BR.jsonindex 4ffa8674..d05fc219 100644--- a/client/src/i18n/locales/pt-BR.json+++ b/client/src/i18n/locales/pt-BR.json@@ -51,7 +51,9 @@"never": "nunca","loading": "Carregando…","error": "Erro",- "noData": "Ainda não há dados"+ "noData": "Ainda não há dados",+ "unsavedChanges": "Alterações não salvas",+ "saveChanges": "Salvar alterações"},"models": {"title": "Modelos",@@ -72,11 +74,17 @@"rpmLimit": "{count} rpm","rpdLimit": "{count} rpd","noKey": "sem chave",- "dragToReorder": "Arraste para reordenar"+ "dragToReorder": "Arraste para reordenar",+ "columnModel": "Modelo",+ "columnOn": "Ativo",+ "noModelsBefore": "Nenhum modelo disponível. Adicione chaves de API na ",+ "keysPageLink": "página Chaves",+ "noModelsAfter": " primeiro.",+ "hiddenNoKeys": "Ocultos (sem chave): {platforms}"},"strategies": {"title": "Estratégia de roteamento",- "description": "Escolha como o roteador ordena sua cadeia de fallback. O modo manual segue a ordem que você define; os demais são estratégias bandit que aprendem com o tráfego real.",+ "description": "Escolha uma estratégia de roteamento. No modo manual, arraste para definir a ordem; as demais estratégias roteiam por pontuação ao vivo de confiabilidade, velocidade e inteligência.","manual": "Manual","manualBlurb": "Roteia na ordem exata que você definir abaixo. Arraste as alças para reordenar. Sem pontuação; a cadeia é seguida de cima para baixo.","balanced": "Equilibrado",@@ -96,7 +104,13 @@"weightSpeed": "Velocidade","weightIntelligence": "Inteligência","weightRequired": "Pelo menos um peso deve ser maior que zero.",- "scoreColumn": "Pontuação"+ "scoreColumn": "Pontuação",+ "weightsSummary": "confiabilidade {reliability}% · velocidade {speed}% · inteligência {intelligence}%",+ "guardrails": "Proteções",+ "guardrailsTooltip": "Proteções sempre ativas: margem de cota gratuita × penalidade de limite de taxa ao vivo. Abaixo de 1,0 o modelo está sendo contido.",+ "scoreTooltip": "Pontuação final de roteamento = média ponderada dos três eixos, multiplicada pelas proteções. A maior é roteada primeiro.",+ "modeManualHint": "Modo manual: as solicitações seguem a ordem abaixo, de cima para baixo. Arraste para reordenar.",+ "modeScoreHint": "As pontuações são atualizadas com o tráfego real. A ordem abaixo é como as solicitações são roteadas agora."},"keys": {"pageTitle": "Chaves",diff --git a/client/src/i18n/locales/zh-CN.json b/client/src/i18n/locales/zh-CN.jsonindex 54f4eaca..14794d60 100644--- a/client/src/i18n/locales/zh-CN.json+++ b/client/src/i18n/locales/zh-CN.json@@ -51,7 +51,9 @@"never": "从未","loading": "加载中…","error": "错误",- "noData": "暂无数据"+ "noData": "暂无数据",+ "unsavedChanges": "未保存的更改",+ "saveChanges": "保存更改"},"models": {"title": "模型",@@ -72,11 +74,17 @@"rpmLimit": "每分钟 {count} 次","rpdLimit": "每日 {count} 次","noKey": "无密钥",- "dragToReorder": "拖动以重新排序"+ "dragToReorder": "拖动以重新排序",+ "columnModel": "模型",+ "columnOn": "启用",+ "noModelsBefore": "暂无可用模型。请先在",+ "keysPageLink": "密钥页面",+ "noModelsAfter": "添加 API 密钥。",+ "hiddenNoKeys": "已隐藏(无密钥):{platforms}"},"strategies": {"title": "路由策略",- "description": "选择路由器如何排列您的回退链。手动模式按您设置的顺序,其余为根据实时流量学习的策略。",+ "description": "选择路由策略。手动模式下拖动即可设置顺序;其他策略会根据可靠性、速度和智能的实时评分进行路由。","manual": "手动","manualBlurb": "完全按下方设置的顺序路由。拖动手柄即可重新排序。不参与评分,按从上到下的顺序依次回退。","balanced": "均衡",@@ -96,7 +104,13 @@"weightSpeed": "速度","weightIntelligence": "智能","weightRequired": "至少一个权重必须大于零。",- "scoreColumn": "评分"+ "scoreColumn": "评分",+ "weightsSummary": "可靠性 {reliability}% · 速度 {speed}% · 智能 {intelligence}%",+ "guardrails": "护栏",+ "guardrailsTooltip": "始终生效的护栏:免费额度余量 × 实时限流惩罚。低于 1.0 表示该模型正在被抑制。",+ "scoreTooltip": "最终路由得分 = 三个维度的加权平均值,再乘以护栏系数。得分越高越优先路由。",+ "modeManualHint": "手动模式:请求按下方顺序从上到下依次尝试。拖动可重新排序。",+ "modeScoreHint": "评分会根据实时流量更新。下方的顺序即为当前实际的路由顺序。"},"keys": {"pageTitle": "密钥",diff --git a/client/src/pages/FallbackPage.tsx b/client/src/pages/FallbackPage.tsxindex 3bc091d6..e8bc313d 100644--- a/client/src/pages/FallbackPage.tsx+++ b/client/src/pages/FallbackPage.tsx@@ -521,7 +521,7 @@ export default function FallbackPage() {<tr className="text-left text-muted-foreground border-b"><th className="py-2 pl-3 pr-1 w-6"></th><th className="py-2 pr-2 w-6 text-center font-medium">#</th>- <th className="py-2 pr-3 font-medium">Model</th>+ <th className="py-2 pr-3 font-medium">{t('models.columnModel')}</th><th className="py-2 pr-3 font-medium"><span className="inline-flex items-center gap-1"><span className="size-2 rounded-sm" style={{ background: '#22c55e' }} />{t('strategies.weightReliability')}</span></th>@@ -532,16 +532,16 @@ export default function FallbackPage() {<span className="inline-flex items-center gap-1"><span className="size-2 rounded-sm" style={{ background: '#a855f7' }} />{t('strategies.weightIntelligence')}</span></th><th className="py-2 pr-3 font-medium">- <Tooltip text="Always-on guardrails: free-quota headroom × live rate-limit penalty. Below 1.0 means the model is being held back.">- <span className="underline decoration-dotted underline-offset-2 cursor-help">Guardrails</span>+ <Tooltip text={t('strategies.guardrailsTooltip')}>+ <span className="underline decoration-dotted underline-offset-2 cursor-help">{t('strategies.guardrails')}</span></Tooltip></th><th className="py-2 pr-3 font-medium text-right">- <Tooltip text="Final routing score = weighted average of the three axes, multiplied by the guardrails. Higher routes first.">+ <Tooltip text={t('strategies.scoreTooltip')}><span className="underline decoration-dotted underline-offset-2 cursor-help">{t('strategies.scoreColumn')}</span></Tooltip></th>- <th className="py-2 pr-3 font-medium text-right">On</th>+ <th className="py-2 pr-3 font-medium text-right">{t('models.columnOn')}</th></tr></thead>)@@ -550,7 +550,7 @@ export default function FallbackPage() {<div><PageHeadertitle={t('models.title')}- description="Pick a routing strategy. In Manual mode you drag to set the order; the other strategies route by live score across reliability, speed and intelligence."+ description={t('strategies.description')}divider={false}actions={<ModelsTabs />}/>@@ -565,9 +565,11 @@ export default function FallbackPage() {<h2 className="text-sm font-medium">{t('strategies.title')}</h2>{routing?.weights && (<span className="text-xs text-muted-foreground tabular-nums">- reliability {Math.round(routing.weights.reliability * 100)}% ·- {' '}speed {Math.round(routing.weights.speed * 100)}% ·- {' '}intelligence {Math.round(routing.weights.intelligence * 100)}%+ {t('strategies.weightsSummary', {+ reliability: Math.round(routing.weights.reliability * 100),+ speed: Math.round(routing.weights.speed * 100),+ intelligence: Math.round(routing.weights.intelligence * 100),+ })}</span>)}</div>@@ -598,9 +600,7 @@ export default function FallbackPage() {</div><p className="mt-2 text-xs text-muted-foreground">- {isManual- ? 'Manual mode: requests follow the order below, top-to-bottom. Drag to reorder.'- : 'Scores update from live traffic. The order below is how requests are routed right now.'}+ {isManual ? t('strategies.modeManualHint') : t('strategies.modeScoreHint')}</p></section>@@ -610,7 +610,7 @@ export default function FallbackPage() {) : ordered.length === 0 ? (<div className="rounded-3xl border border-dashed p-8 text-center"><p className="text-sm text-muted-foreground">- No models available. Add API keys on the <a href="/keys" className="underline text-foreground">Keys page</a> first.+ {t('models.noModelsBefore')}<a href="/keys" className="underline text-foreground">{t('models.keysPageLink')}</a>{t('models.noModelsAfter')}</p></div>) : (@@ -650,15 +650,15 @@ export default function FallbackPage() {{/* Floating action bar — fixed to the viewport so it's always visible,sliding up when there are unsaved changes and back down on save/discard. */}<FloatingBar show={hasChanges}>- <span className="text-xs text-muted-foreground">Unsaved changes</span>+ <span className="text-xs text-muted-foreground">{t('common.unsavedChanges')}</span><Button variant="outline" size="sm" onClick={() => setLocalEntries(null)}>{t('common.discard')}</Button><Button size="sm" onClick={handleSave} disabled={saveMutation.isPending}>- {saveMutation.isPending ? t('common.saving') : 'Save changes'}+ {saveMutation.isPending ? t('common.saving') : t('common.saveChanges')}</Button></FloatingBar>{unconfiguredPlatforms.length > 0 && (- <p className="text-xs text-muted-foreground">Hidden (no keys): {unconfiguredPlatforms.join(', ')}</p>+ <p className="text-xs text-muted-foreground">{t('models.hiddenNoKeys', { platforms: unconfiguredPlatforms.join(', ') })}</p>)}</>)}