# How do I translate a Lottie animation?

50.7 s · Narrator: Frederick Surrey

Translate dotLottie animation files with the General Translation CLI.

| Time | Voice | Line | On screen |
| --- | --- | --- | --- |
| 0:00.88 | Narrator | In Lille, a reader of French opens your onboarding page, and the animation's words are English. | A web page draws in the middle of the frame: a bar at the top, the frame of an animation, lines of copy and a button. On "Lille" the language code `fr` appears over its top right corner: the language the reader's browser asks for. On "reader" the page fills in, and on "opens" the animation plays: a card rises in a grey outline, the title "Invite your team" rises in white, three rows of a member list rise in turn, and a check draws in the first row. The heading "The animation's words are English" rises on "the", and on "English" the animation's title turns blue. |
| 0:07.04 | Narrator | The words are text inside its .lottie file, and only an English file exists. | On "The" the page slides to the right, and on "words" a code panel opens with the project's files, `animations/`, `en/` and `onboarding.lottie`, over the text inside `animations/en/onboarding.lottie`: `"t": "Invite your team"`, `"f": "Inter-Medium"` and `"s": 40`. On "text" the blue moves from the page to `"Invite your team"` in the file, on "its" a line joins that row to the animation's title on the page, and on "only" a white box draws around `en/` and its `onboarding.lottie`. |
| 0:12.86 | Narrator | General Translation translates Lottie animations with npx gt stage and npx gt download. | The answer card cuts in on "General": the answer alone rises as it is spoken, in two lines, "General Translation translates Lottie animations" then "with npx gt stage and npx gt download", and the General Translation mark sits small in the lower left corner. |
| 0:20.38 | Narrator | List the animations and the fonts they use in gt.config.json. | The code panel opens again with `gt.config.json`: the default locale `en`, the locales `es` and `fr`, a `lottie` entry that includes `animations/[locale]/**/*.lottie`, and a `fonts` entry that includes `public/fonts/**/*.{ttf,otf}`. The heading "List the animations and fonts" rises on "List". On "animations" the animations path turns blue; on "and" a file panel opens on the right with `public/`, `fonts/`, `Inter-Medium.ttf`, `animations/`, `en/` and `onboarding.lottie`; on "fonts" the blue moves to the fonts path; `gt.config.json` appears in the file panel as its name is said, and a white box draws around the fonts entry. |
| 0:25.46 | Narrator | After you sign in and set your project ID, run npx gt stage, which uploads the fonts first. | The panel cuts to a terminal, and `npx gt login` is typed on "sign". On "project" `.env.local` opens under it with `GT_PROJECT_ID=your-project-id`, the docs' placeholder. The heading "Run npx gt stage" rises with a new prompt, and `npx gt stage` is typed on "npx". On "uploads" a white box draws around `Inter-Medium.ttf` in the file panel, and on "first" `gt-lock.json` appears at its top. |
| 0:32.50 | Narrator | Run npx gt download until the Spanish and French files are saved, and review them before you publish. | The panel cuts to a new terminal, the heading "Run npx gt download" rises, and `npx gt download` is typed. On "Spanish" `es/` and its `onboarding.lottie` appear under `animations/` in the file panel, and on "French" `fr/` and its `onboarding.lottie`. On "review" a white box draws around the four new rows, and on "publish" it draws back. |
| 0:39.00 | Narrator | In Lille, the same animation plays in Spanish and in French, at its English font size. | The page cuts back in the middle of the frame, as it was, the animation in English at its last frame. On "same" the animation plays again. On "Spanish" its title changes to the Spanish file's while the rest of the animation stays still, and the language code changes to `es`; on "French" the title changes to the French file's, in two lines at the same size, and the code to `fr`. Then the French title turns blue where the English title was, and on "size" a white box draws around it. |
| 0:45.48 | No voice |  | The end card: the General Translation logo with generaltranslation.com/docs/cli/reference/formats/lottie-files 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.
