MCPcopy
hub / github.com/alibaba/page-agent / useLanguage

Function useLanguage

packages/website/src/i18n/context.tsx:30–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28}
29
30export function useLanguage() {
31 const ctx = use(LanguageContext)
32 if (!ctx) throw new Error('useLanguage must be used within LanguageProvider')
33 return ctx
34}

Callers 15

LanguageSwitcherFunction · 0.90
HeaderFunction · 0.90
FooterFunction · 0.90
BetaNoticeFunction · 0.90
ScenariosSectionFunction · 0.90
HeroSectionFunction · 0.90
OneMoreThingSectionFunction · 0.90
FeaturesSectionFunction · 0.90
DocsLayoutFunction · 0.90
QuickStartFunction · 0.90
TroubleshootingPageFunction · 0.90
LimitationsPageFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected