All notable changes to @devwizard/laravel-localizer-react will be documented in this file.
Full Changelog: https://github.com/DevWizardHQ/laravel-localizer-react/compare/v1.0.1…v1.1.0
Full Changelog: https://github.com/DevWizardHQ/laravel-localizer-react/compare/v1.0.0…v1.0.1
This is the first stable release of Laravel Localizer React, providing seamless integration between Laravel translations and React applications.
A powerful React hook for accessing Laravel translations with full TypeScript support:
Translation Functions
__() - Main translation function with placeholder replacement and fallback supporttrans() - Alias for __() (Laravel compatibility)lang() - Alias for __() (Laravel compatibility)has() - Check if translation key existschoice() - Pluralization support with replacement variablesLocale Information
locale - Current locale code (e.g., ‘en’, ‘fr’)dir - Text direction (‘ltr’ or ‘rtl’)availableLocales - Available locales with metadata (label, flag, direction)translations - All translations for current locale:placeholder and {placeholder} formatsAutomatic TypeScript generation with hot module replacement:
Seamless integration with Inertia.js:
minimatch for pattern matching in Vite plugin