The CLI Tool
The General Translations CLI tool
Overview
This is a reference doc on the General Translation CLI tool.
The CLI tool is used for managing your project's translations.
It allows you to generate translations, generate translation templates, and setup your project for translation.
Read more about gtx-cli
here.
Installation
What does the CLI tool do?
If you are using gt-next
, you will primarily be concerned with the translate
and setup
commands.
The CLI tool is used for managing your project and your translations.
- The
translate
command is meant to be added to the CD pipeline. It is used to scan your project for content to be translated. The content is then uploaded to a CDN or added to your app bundle to be used at runtime. - The
setup
command is used to automatically integrate the General Translation library into your project. It will scan through your project and wrap any JSX content with a<T>
component.