1.1.0 โข Published 7 months ago
@sayyyat/smart-i18n-react v1.1.0
Smart-i18n React
React/Next.js boilerplate installer for Smart-i18n CLI with feature scaffolding and project structure setup
smart-i18n-react is a project-specific integration package built on top of @sayyyat/smart-i18n. It provides enhanced developer tooling for Next.js, React, and similar frontend frameworks, focusing on structured file layout and automated i18n setup via Gulp tasks.
โ๏ธ Features
- ๐ Installs a ready-to-use i18n folder structure for React/Next.js
- ๐ Auto-generates
i18next.config.jsonand.demo-env - ๐งฉ Scaffolds new features in Feature-Sliced Design format
- โ๏ธ Powered by smart-i18n under the hood
๐ฆ Installation
Run the following command to install and initialize:
yarn add -D @sayyyat/smart-i18n-react
yarn smart-i18n-react initThis will generate:
i18next.config.jsonโ configuration file for Gulp scripts.demo-envโ environment file for translation APIssrc/i18n/โ prestructured translation folder with base files
๐ Usage
# Create a feature folder with boilerplate
yarn smart-i18n-react create-feature -n my-feature
# List all available commands
yarn smart-i18n-react help๐ง Available Tasks
| Command | Description |
|---|---|
smart-i18n-react init | Copies i18next.config.json, .demo-env, and src/i18n/ |
smart-i18n-react create-feature -n | Creates new feature folder in src/features/ |
smart-i18n-react help | Displays full CLI documentation |
๐ Documentation
- ๐ Gulp Task Structure โ breakdown of CLI tasks and file layout
- โน๏ธ Uses
@sayyyat/smart-i18ninternally โ see its Getting Started guide for translation workflows.
๐งช Example Usage
๐ See next-i18n-auth for real-world usage in a Next.js + TypeScript project with strict modular translation and typed i18n keys.
โ๏ธ License
MIT ยฉ Sayat Raykul
๐ Related Projects
@sayyyat/smart-i18nโ The core CLI engine that provides scanning, merging, and type generation.next-i18n-authโ Real-world example integrating both smart-i18n and smart-i18n-react with feature-sliced architecture and multilingual auth flows.