MCPcopy
hub / github.com/Anil-matcha/Open-Generative-AI / t

Function t

src/lib/i18n.js:395–400  ·  view source on GitHub ↗
(key)

Source from the content-addressed store, hash-verified

393};
394
395export function t(key) {
396 const lang = getLang();
397 const dict = translations[lang] || translations.en;
398 const val = dict[key] !== undefined ? dict[key] : (translations.en[key] !== undefined ? translations.en[key] : key);
399 return typeof val === 'function' ? val : val;
400}
401
402export function tf(key, ...args) {
403 const lang = getLang();

Callers 15

SettingsModalFunction · 0.90
CinemaStudioFunction · 0.90
updateBuilderPreviewFunction · 0.90
renderHistoryFunction · 0.90
ImageStudioFunction · 0.90
updateLocalToggleStyleFunction · 0.90
toggleAdvancedFunction · 0.90
updateEnhancedPromptFunction · 0.90
showDropdownFunction · 0.90
renderModelsFunction · 0.90
VideoStudioFunction · 0.90
showDropdownFunction · 0.90

Calls 1

getLangFunction · 0.85

Tested by

no test coverage detected