1.2.0 • Published 7 months ago

ai-intl v1.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

Language barriers have always been a major obstacle in the globalized world we live in. With businesses expanding overseas and people from different cultures interacting, the need for effective translation services has never been greater. However, traditional translation methods are often time-consuming, costly, and can still result in errors. That's where AI-Intl comes in

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.

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 CLI:

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

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

  3. Set the key so ai-intl can use it:

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

    ai-intl generate

    ai-intl generate cli

  5. Customize your translations

    Open ai-intl.config.json that the CLI generated for you and customize 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.

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.
  • Custom prompts, you can customize your translations by using a custom propmt, just type ai-intl translate --prompt "your prompt"

Issues

  • If you are facing any issue, please feel free to open a GitHub issue.

Advantages

After finishing development, translation of content becomes a breeze with AI to take care of it all. With the added convenience of instant checks for corner cases such as right-to-left language or long words, you can rest easy knowing that your content is being handled with efficiency and care, leaving you with more time to focus on other important tasks

Website that need to support multiple locales Startup that is building awesome products and you want to focus on things that matters Work on marketing materials You need localization of social media platforms You are running and e-commerce platform You want to add internalization for your software

Use cases:

:white_check_mark: Building a website that supports multiple locales

:white_check_mark: Focus on product opportunity and don't want to waste time dealing with json files

:white_check_mark: Working on marketing materials

:white_check_mark: Localizing social media platforms

:white_check_mark: Running an e-commerce platform

:white_check_mark: Adding internationalization to software

Maintainers

Used by

1.2.0

7 months ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.0

1 year ago

1.1.5

1 year ago

1.1.4

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago