npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, πŸ‘‹, I’m Ryan HefnerΒ  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you πŸ™

Β© 2024 – Pkg Stats / Ryan Hefner

ai-intl

v1.2.0

Published

<div align="center"> <div> <img src=".github/AI-INTL.gif" alt="AI Commits"/> <h1 align="center">AI-Intl</h1> </div> <p>A CLI that manage your translations for you with AI πŸš€</p> <a href="https://www.npmjs.com/package/ai-intl"><img src="https

Downloads

138

Readme

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