https://github.com/9aia/psitta
(🚧 WIP) Next-gen internationalization framework powered by GenAI.
https://github.com/9aia/psitta
ai gaia-public i18n intl public react typescript vue web
Last synced: 2 months ago
JSON representation
(🚧 WIP) Next-gen internationalization framework powered by GenAI.
- Host: GitHub
- URL: https://github.com/9aia/psitta
- Owner: 9aia
- Created: 2024-02-24T23:47:19.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-08-18T06:16:02.000Z (10 months ago)
- Last Synced: 2025-10-07T12:02:26.305Z (9 months ago)
- Topics: ai, gaia-public, i18n, intl, public, react, typescript, vue, web
- Language: TypeScript
- Homepage: http://9aia.com/psitta/
- Size: 1.07 MB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Psitta
> [!WARNING]
> Psitta is currently a work in progress. Expect potential bugs, incomplete documentation, and ongoing development. Approach it with a growth mindset, enjoy experimenting, and refrain from using it for critical production purposes at this time.
Psitta is a modern and experimental Web internationalization framework designed to simplify the localization of messages, URLs, and values. It focuses on being ESM-only, type-safe, machine-translatable, and provides easy-to-use i18n common tasks based on the Intl Web APIs.
## Goals
- **Simplify internationalization**: Provide an intuitive way to handle message localization and URL management for web applications.
- **Ensure code reliability**: Implement type-safe measures using TypeScript to enhance code quality and reduce errors.
- **Explore AI integration**: Experiment with AI technologies for potential automated and accurate translation capabilities.
## Scope
This project encompasses the development and management of the following components:
- **Message and URL Localization:** Simplify the localization process for messages and URLs within web applications.
- **Formatting:** Utilize the Intl API for formatting dates, times, numbers, and other locale-specific conventions.
- **Grammar Rules Application:** Implement grammar rules, including gender inflection and number inflection (pluralization), for accurate language representation.
- **Locale Detection:** Automatically detect user locale from various sources such as cookies, URLs, `navigator.language`, or headers, ensuring a seamless experience.
- **Translator Integration:** Integrate advanced AI technologies for accurate and seamless translation of content.
- **Message Resolution:** Providing functionality for resolving messages into segments and strings, which is useful for styling message parts.
**The project does not include:**
* Translation management tools or services for managing localization workflows
## Features
- 🔒 **Type-safe**: Ensures type safety using TypeScript.
- ✨ **AI-translatable**: Uses advanced AI for accurate translation.
- 🔄 **Framework agnostic**: Compatible with any JavaScript framework or library.
- 🌍 **Intl-based Formatting**: Formats dates, times, and numbers according to locale conventions.
- 🍪 **Locale detection**: Automatically detects user locale from various sources.
- 📦 **ESM-only**: Designed for ECMAScript Modules (ESM) in modern JavaScript.
## Installing
To install Psitta, please follow the [Installation Guide](https://9aia.github.io/psitta/core/guide/installation.html) in the documentation.
## Documentation
- [Reference](https://9aia.github.io/psitta/core/reference/config.html)
- [Homepage](https://9aia.github.io/psitta/)
## Contributing
Contributions are welcome! If you encounter any issues or have suggestions for improvements, please [open an issue](https://github.com/9aia/psitta/issues) or [submit a pull request](https://github.com/9aia/psitta/pulls) on the Psitta GitHub repository.