INNER CODE UNIT · TypeScript

useT

CronusL-1141/AI-company · dashboard/src/i18n/index.ts:86

export function useT() {
  const ctx = useContext(LanguageContext);
  if (!ctx) {
    // Fallback: return zh translations directly when used outside provider
    return langs['zh'];
  }
  return ctx.t;
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…