MCPcopy
hub / github.com/Zleap-AI/SAG / useI18n

Function useI18n

web/src/i18n.tsx:49–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47}
48
49export function useI18n() {
50 const context = useContext(I18nContext);
51 if (!context) {
52 throw new Error("useI18n must be used within I18nProvider");
53 }
54 return context;
55}
56
57export function translate(language: SupportedLanguage, zh: string, en: string) {
58 return language === "en" ? en : zh;

Callers 15

AppShellFunction · 0.90
ProjectRailFunction · 0.90
MainWorkspaceTabsFunction · 0.90
ConversationWorkspaceFunction · 0.90
RunningMcpSearchPanelFunction · 0.90
CitationStripFunction · 0.90
ProjectGraphWorkspaceFunction · 0.90
ActivityPanelFunction · 0.90
ProcessPanelFunction · 0.90
RawLogsPanelFunction · 0.90
UploadJobsPanelFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected