Skip to content

The IDE you know, rebuilt in Rust. IntelliJ IDEA–style keymap, tool windows and search-everywhere in a fast native app: editor, code insight, debugger, Git, terminal, database and HTTP clients for 60+ languages.

423 B
Raw Blame
import { useGivenTx, useTx } from "@/platform/i18n";

/** English UI text, translated through the source-text catalog; re-renders on locale change. */
export function T({ children }: { children: string }) {
  return useTx()(children);
}

/** Text a component was given: translated like `T`, shown as written below plugin UI. */
export function Given({ children }: { children: string }) {
  return useGivenTx()(children);
}