@veltixjs/vite-wayfinder-i18n
v0.1.0
Published
Vite plugin for veltix/wayfinder-locales — multilingual route + translation generation.
Maintainers
Readme
@veltixjs/vite-wayfinder-i18n
Vite plugin companion for veltix/wayfinder-locales —
multilingual route + translation generation extending Laravel Wayfinder.
It wraps @laravel/vite-plugin-wayfinder, pointing it at the wayfinder-i18n:generate
artisan command and additionally watching your lang/ directory and the package config so
localized routes and translation catalogs regenerate on change.
Install
npm install -D @veltixjs/vite-wayfinder-i18nUsage
import { wayfinderI18n } from "@veltixjs/vite-wayfinder-i18n";
export default defineConfig({
plugins: [
// ...
wayfinderI18n({ formVariants: true }),
],
});Options
All options from @laravel/vite-plugin-wayfinder pass through. Additionally:
command— artisan command to run (defaultphp artisan wayfinder-i18n:generate)patterns— extra watch globs, merged with the defaults (routes/**,app/**/Http/**,lang/**,config/wayfinder-i18n.php)
License
MIT
