All notable changes to @devwizard/laravel-localizer-vue will be documented in this file.
Full Changelog: https://github.com/DevWizardHQ/laravel-localizer-vue/compare/v1.0.0β¦v1.0.1
This is the first stable release of Laravel Localizer Vue, providing seamless integration between Laravel translations and Vue 3 applications.
A powerful Vue 3 composable for accessing Laravel translations with full TypeScript support and reactivity:
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 variablesReactive Locale Information
locale - ComputedRef for current locale code (e.g., βenβ, βfrβ)dir - ComputedRef for text direction (βltrβ or βrtlβ)availableLocales - ComputedRef for available locales with metadatatranslations - ComputedRef for all translations for current locale:placeholder and {placeholder} formatsAutomatic TypeScript generation with hot module replacement:
Seamless integration with Inertia.js:
<script setup> syntaxminimatch for pattern matching in Vite pluginThis release consolidates all beta features into a stable API. Key changes from beta versions:
Renamed useTranslation to useLocalizer for consistency
Uses window.localizer.translations for global translation access
Improved Vite plugin with better pattern matching
Enhanced TypeScript definitions
All reactive values are now ComputedRef types
Proper package.json exports field
Peer dependencies: Vue 3+, Inertia v1/v2, Vite 5+