1.1.0 โ€ข Published 7 months ago

@sayyyat/smart-i18n-react v1.1.0

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

Smart-i18n React

npm version npm downloads License Node.js CI

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.json and .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 init

This will generate:

  • i18next.config.json โ€” configuration file for Gulp scripts
  • .demo-env โ€” environment file for translation APIs
  • src/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

CommandDescription
smart-i18n-react initCopies i18next.config.json, .demo-env, and src/i18n/
smart-i18n-react create-feature -nCreates new feature folder in src/features/
smart-i18n-react helpDisplays full CLI documentation

๐Ÿ“ Documentation


๐Ÿงช 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.
1.1.0

7 months ago

1.0.1

7 months ago

1.0.0

7 months ago

0.0.6

7 months ago

0.0.5

7 months ago

0.0.4

7 months ago

0.0.3

7 months ago

0.0.2

7 months ago