Repository navigation
What's changed
Translations 🌍
Every form can now be shown in any language, on the server and in the browser.
Frontend
- New
setTranslations()andTranslationValuein@erag/inertia-forms-react,-vueand-svelte(0.0.2). - 130 keys cover buttons, placeholders, empty states, screen reader labels, file sizes, wizard text and calendar names.
:nametokens work like Laravel's. A value can also be a function, for plurals or number formatting.- Calling
setTranslations()again switches open forms to the new language right away.
Laravel
- New publishable language file:
php artisan vendor:publish --tag=inertia-forms-lang. - Fields without a
label()take their name from your app'svalidation.attributestranslations. - Built-in button text (wizard Continue / Back, Composer Send, add buttons) is now
nullin the schema unless you set it, so the frontend translation is used.
Other
- New Laravel Boost skill:
inertia-forms-translations. - npm packages are now published from GitHub Actions with Trusted Publishing.
Upgrade notes
Blocks,Repeater,KeyValueandComposerlabels, plus the wizardnextLabel/backLabel, arenullwhen you don't set them.- The KeyValue delete button label changed from "Remove row N" to "Delete row N".
Full Changelog: v0.0.2...v0.0.3