Skip to content

v0.0.3

Latest

Choose a tag to compare

@eramitgupta eramitgupta released this 13 Nov 19:40

What's changed

Translations 🌍

Every form can now be shown in any language, on the server and in the browser.

Frontend

  • New setTranslations() and TranslationValue in @erag/inertia-forms-react, -vue and -svelte (0.0.2).
  • 130 keys cover buttons, placeholders, empty states, screen reader labels, file sizes, wizard text and calendar names.
  • :name tokens 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's validation.attributes translations.
  • Built-in button text (wizard Continue / Back, Composer Send, add buttons) is now null in 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, KeyValue and Composer labels, plus the wizard nextLabel / backLabel, are null when 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