# gt: General Translation CLI tool: Autoderive URL: https://generaltranslation.com/en-US/docs/cli/features/autoderive.mdx --- title: Autoderive description: Automatically derive interpolated values in translation functions --- ## Overview When autoderive is enabled, interpolated values in `t()`, `gt()`, and `msg()` calls are parsed as if they were wrapped in [`derive()`](/docs/next/api/strings/derive). This generates separate translation entries for each possible value, preserving word agreement and conjugation across languages. Autoderive is **disabled by default**. ## Configuration ```json title="gt.config.json" { "files": { "gt": { "parsingFlags": { "autoderive": true } } } } ``` ## Example ```jsx const gt = useGT(); const role = isAdmin ? "Admin" : "User"; // With autoderive enabled, this is parsed as derived: gt(`Welcome back, ${role}!`); // Generates: // "Welcome back, Admin!" → "¡Bienvenido de nuevo, Admin!" // "Welcome back, User!" → "¡Bienvenido de nuevo, User!" ``` Without autoderive, you must explicitly use [`derive()`](/docs/next/api/strings/derive) to get the same behavior. The `t` tagged template macro is unaffected — it handles derivation through its template literal syntax. ## Related - [`derive()` function reference](/docs/next/api/strings/derive) - [Auto JSX injection](/docs/cli/features/auto-jsx-injection) - [Release notes: gt@2.13.0](/devlog/gt_v2_13_0)