Skip to content

A CLI that translates your content for you with AI (pre-commit ๐Ÿš€)

Notifications You must be signed in to change notification settings

jobtome-labs/ai-intl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

54 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

AI Commits

AI-Intl

A CLI that manage your translations for you with AI ๐Ÿš€

Current version

Setup

Please note that this project is currently under active development, so while it may not work 100% at this time, we are working diligently to improve it. Thank you for your patience and understanding.

  1. Install ai-intl:

    npm install -g ai-intl
  2. Retrieve your API key from OpenAI

    Note: If you haven't already, you'll have to create an account and set up billing.

  3. Set the key so aicommits can use it:

    ai-intl config set OPENAI_KEY=<your token>
  4. Generate the config file:

    ai-intl generate

    ai-intl generate cli

  5. You can now open ai-intl.config.json and personalize your translations.

  6. Optional if you want to run ai-intl pre-commit set up the hook.

    ai-intl hook install

    If you are using husky add npx ai-intl to the pre-commit hook.

What is all about?

Say goodbye to the complexities of internationalization with our AI-powered CLI application. This cutting-edge technology automates the process of translating and adapting your website for different cultures and languages, saving you time and effort.

How it works

  • CLI that generate for you translations on demand. Run ai-intl translate and it will translate the content for you.
  • If enabled, the pre-commit hook ๐Ÿš€ will check for translation changes in your default locale and adapt all other translations for each pull request.

Advantages

Once you have finished your development, you no longer have to worry about translating the content. AI will take care of it for you.

A jobtome project

Maintainers

Thanks