# gt: General Translation CLI tool: Using automatic JSX injection URL: https://generaltranslation.com/en-GB/docs/cli/guides/using-auto-jsx.mdx --- title: Using automatic JSX injection description: How to wrap translatable JSX text in General Translation components at build time using automatic JSX injection. related: links: - /docs/cli/guides/using-autoderive - /docs/cli/guides/generating-translations - /docs/cli/guides/configuring - /docs/cli/guides/managing-translations --- Automatic JSX injection makes the compiler wrap translatable JSX text in [``](/docs/react/reference/components/t) components at build time, so you do not have to add them by hand. Automatic JSX injection is disabled by default. *Note: Automatic JSX injection currently works only with the i18n-context system and single-page React apps.* ## Enable automatic JSX injection [#enable] Set `enableAutoJsxInjection` under `files.gt.parsingFlags` in `gt.config.json`. ```json title="gt.config.json" { "files": { "gt": { "parsingFlags": { "enableAutoJsxInjection": true } } } } ``` ## How it works [#how] Without injection, you wrap translatable text yourself. ```jsx import { T } from 'gt-next'; function Welcome() { return (

Welcome to our app

); } ``` With injection enabled, the compiler detects the translatable text and wraps it automatically at build time. ```jsx function Welcome() { return

Welcome to our app

; } ``` Text you have already wrapped in ``, along with other General Translation components such as [``](/docs/react/reference/components/var), [``](/docs/react/reference/components/branch), [``](/docs/react/reference/components/plural), and [``](/docs/react/reference/components/derive), is left untouched. ## Next steps - /docs/cli/guides/using-autoderive - /docs/cli/guides/generating-translations - /docs/cli/guides/configuring - /docs/cli/guides/managing-translations