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.
-
Install ai-intl:
npm install -g ai-intl
-
Retrieve your API key from OpenAI
Note: If you haven't already, you'll have to create an account and set up billing.
-
Set the key so aicommits can use it:
ai-intl config set OPENAI_KEY=<your token>
-
Generate the config file:
ai-intl generate
-
You can now open ai-intl.config.json and personalize your translations.
-
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.
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.
- 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.
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
- Erik Olivero: @ekolivero
- This project was inspired by ai-commits