import { useCallback } from "react";
import { tLang } from "../i18n";

/** Admin area always uses Chinese, independent of site language. */
export function useAdminT() {
  return useCallback((key: string) => tLang("zh-CN", key), []);
}
