MCPcopy
hub / github.com/TanShilongMario/PromptFill / t

Function t

src/context/RootContext.jsx:20–26  ·  view source on GitHub ↗
(key, params = {})

Source from the content-addressed store, hash-verified

18 const [isBanksSidebarVisible, setIsBanksSidebarVisible] = useStickyState(true, "panel_banks_sidebar_v1");
19
20 const t = (key, params = {}) => {
21 let str = TRANSLATIONS[language]?.[key] || key;
22 Object.keys(params).forEach(k => {
23 str = str.replace(`{{${k}}}`, params[k]);
24 });
25 return str;
26 };
27
28 useEffect(() => {
29 if (themeMode === 'system') {

Callers 15

MobileTabBarFunction · 0.50
EditorToolbarFunction · 0.50
VisualEditor.jsxFile · 0.50
CategorySectionFunction · 0.50
BankGroupFunction · 0.50
InsertVariableModalFunction · 0.50
AddBankModalFunction · 0.50
BanksSidebar.jsxFile · 0.50
VariableFunction · 0.50
SidebarFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected