# Can an AI coding agent set up i18n for me?

48.4 s · Narrator: Frederick Surrey

Yes. Copy the start prompt with the Setup for Agents button on generaltranslation.com and paste it into your coding agent. The prompt has the agent read the docs, sign in with gt login, set up the project with flags, translate a first page, and verify the result.

| Time | Voice | Line | On screen |
| --- | --- | --- | --- |
| 0:00.88 | Narrator | In Sapporo, a Japanese reader finds your app is still in English. | A browser draws in the middle of the frame, its tab and address drawn as bars. On "Sapporo" the language code `ja` appears over its top right corner, and on "Japanese" the app's page rises: "Welcome back" and a white "Get started" button, both in English. The heading "Your app is still in English" rises on "your", and on "English" "Welcome back" turns blue. |
| 0:05.08 | Narrator | Your agent ran gt init without flags, and it waits for an answer. | On "agent" the browser slides to the right. On "ran" a code panel opens on the agent's terminal: `$ npx gt init`, the command's banner drawn as bars, and "Running setup wizard...". On "flags" its first question rises: "Next.js App Router detected. Would you like to connect to GitHub so that the Locadex AI Agent can set up your project automatically?", with Yes and No under it and No selected. On "and" the blue moves from the page to the question, on "waits" a line joins the question to "Welcome back", and on "answer" a white box draws around Yes and No. |
| 0:10.10 | Narrator | General Translation lets your agent set up i18n with the prompt from Setup for Agents. | The answer card cuts in on "General": the answer alone rises as it is spoken, in two lines, "General Translation lets your agent set up i18n" then "with the prompt from Setup for Agents", and the General Translation mark sits small in the lower left corner. |
| 0:17.40 | Narrator | The prompt has your agent run gt login, which you approve. | The heading "Sign in with gt login". The code panel opens again on the agent's window, whose message box holds the pasted prompt: "# Get started with General Translation", then "I landed on https://generaltranslation.com and clicked "Setup for Agents". Help me add General Translation to my app, website, or content, and get a real translation working.", the rest drawn as bars. A white box draws around the prompt's title on "prompt". On "run" the panel cuts to the agent's terminal: `$ npx gt@latest whoami` and its error on two rows, "gt Error: You are not signed in." and "Run `gt login` to sign in.". On "login" `$ npx gt@latest login` and "Opening your browser to sign in." appear, and a browser opens on the right at dash.generaltranslation.com: "Authorize General Translation CLI", "Sign in to this application with your General Translation account.", Identity and Permissions drawn as bars, "Only approve if you started this sign-in yourself, for example by running a command in your terminal.", and the buttons Deny and Approve. On "approve" Approve is pressed, and at the end of the line "You are now signed in." appears in the terminal. |
| 0:21.58 | Narrator | It runs gt init with a flag for every question, so the command asks nothing. | The code panel cuts to the terminal with `npx gt@latest init` and its flags over six rows: `--no-interactive`, `--json`, `--defaults`, `--default-locale en`, `--locales es fr ja`, `--no-locadex`, `--react-setup`, `--file-formats none`, `--no-dev-credentials` and `--project-id your-project-id`, and the project's files appear on the right: `app/` with `layout.tsx` and `page.tsx`, `next.config.ts` and `package.json`. A white box draws around the command's first row on "init". The heading "A flag for every question" rises, and on "flag" every flag turns blue. On "command" `gt.config.json` joins the files, on "asks" `loadTranslations.js`, and on "nothing" the command's result appears: `{"type":"result","command":"init","outcome":"success",…}`. |
| 0:27.86 | Narrator | Then it wraps your page in the T component, adds a LocaleSelector, and runs gt translate. | The code panel cuts to `app/page.tsx`, whose page renders `<h1>Welcome back</h1>` and `<button>Get started</button>`, and the heading "The page wrapped in <T>" rises. On "wraps" `<T>` and `</T>` open around the two lines, on "page" the two lines move in one level, and on "T" `import { T, LocaleSelector, useGT } from 'gt-next';` opens at the top. On "Locale" `<LocaleSelector aria-label={gt('Language')} />` opens above `<T>`, and on "Selector" `const gt = useGT();`. A blue bar marks each changed line. On "runs" the panel cuts to the terminal with `npx gt@latest translate --dry-run`, then `npx gt@latest translate` on "translate", and `public/_gt/` with `es.json`, `fr.json` and `ja.json`, and `gt-lock.json`, join the files. |
| 0:34.12 | Narrator | It builds the app and reports what it actually verified. | The code panel cuts to the terminal with `npx tsc --noEmit`, then `npx next build` on "builds", and the files stay on the right. The heading "A report of what it verified" rises as the panel cuts to the agent's last message, whose parts appear in turn, each over bars: "What changed", "Project and locales", "How to run it", "What I actually verified" and "Remaining actions". On "verified" a white box draws around "What I actually verified". |
| 0:37.44 | Narrator | Your app opens in Spanish and French, and in Japanese for the reader in Sapporo. | The browser cuts back in the middle of the frame, in English, with the code `en`: a language menu set to English above "Welcome back" and "Get started". On "Spanish", "French" and "Japanese" the whole page switches to that language, the menu and the code with it. On "reader" the Japanese heading turns blue, in the place where "Welcome back" turned blue at the start, and on "Sapporo" a white box draws around it. |
| 0:43.18 | No voice |  | The end card: the General Translation logo with generaltranslation.com/docs/overview/for-coding-agents under it, held to the last frame while the music ends on a held chord. |

Times are where each line starts in the final, read from the film's own audio.
