Add multi-language support for UI
- Add 30 new locale files (ar, bn, cs, da, de, el, es, fi, fr, he, hi, hu, id, it, ja, ko, nl, no, pl, pt-BR, pt-PT, ro, ru, sv, th, tl, tr, uk, ur, zh-TW) - Update i18n config to register new languages - Update LanguageSwitcher component to support expanded language list - Update localDb and pricing constants for i18n compatibility Made-with: Cursor
This commit is contained in:
committed by
decolua
parent
62d7e61907
commit
11c6b0c42f
@@ -1037,7 +1037,11 @@ export async function getPricingForModel(provider, model) {
|
||||
return pricing[alias][model] || null;
|
||||
}
|
||||
|
||||
return null;
|
||||
// Fallback: strip vendor prefix (e.g. "deepseek/deepseek-chat" → "deepseek-chat")
|
||||
// then lookup in MODEL_PRICING (provider-agnostic explicit map)
|
||||
const { MODEL_PRICING } = await import("@/shared/constants/pricing.js");
|
||||
const baseModel = model.includes("/") ? model.split("/").pop() : model;
|
||||
return MODEL_PRICING[baseModel] || MODEL_PRICING[model] || null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user