JSPM

  • Created
  • Published
  • Downloads 22
  • Score
    100M100P100Q51970F
  • License MIT

πŸš€ The fastest zero-dependency internationalization engine with AI-ready translation, smart caching, and universal framework support

Package Exports

  • @ui18n/core
  • @ui18n/core/adapters
  • @ui18n/core/browser
  • @ui18n/core/cdn-loader
  • @ui18n/core/node
  • @ui18n/core/package.json

Readme

@ui18n/core

Core internationalization library with advanced features like caching, fallbacks, and performance optimization.

πŸš€ Installation

npm install @ui18n/core

πŸ“– Quick Start

import { createUI18n } from '@ui18n/core';

const ui18n = createUI18n({
  locale: 'en',
  messages: {
    en: { hello: 'Hello World' },
    zh: { hello: 'δ½ ε₯½δΈ–η•Œ' }
  }
});

const message = await ui18n.t('hello');
console.log(message); // 'Hello World'

πŸ“‹ API Reference

Main Exports

// Core exports
export { ... }

Configuration Options

interface Config {
  // Configuration options
}

🎯 Examples

Basic Usage

// Basic example

Advanced Usage

// Advanced example

πŸ”§ Configuration

Options

  • option1: Description
  • option2: Description

Environment Variables

  • UI18N_ENV: Production/development mode

πŸ§ͺ Testing

npm test

πŸ“ Changelog

See CHANGELOG.md for version history.

🀝 Contributing

See CONTRIBUTING.md for contribution guidelines.

πŸ“„ License

MIT Β© UI18n Team


Part of the UI18n ecosystem - Making internationalization simple and powerful.