This package only has support till Laravel 7.x. You need to find a different way to get the translations in your application.
This might be interesting for you: https://franciscomadeira.com/how-to-use-laravel-vue-i18n
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I need to add i18n support in Laravel 9/Inertiajs2/vuejs3 app and I tried to use https://github.com/martinlindhe/laravel-vue-i18n-generator package :
But I got errors :
$ composer require martinlindhe/laravel-vue-i18n-generator --dev
Info from https://repo.packagist.org: #StandWithUkraine
Using version ^0.1.46 for martinlindhe/laravel-vue-i18n-generator
./composer.json has been updated
Running composer update martinlindhe/laravel-vue-i18n-generator
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires martinlindhe/laravel-vue-i18n-generator ^0.1.46 -> satisfiable by martinlindhe/laravel-vue-i18n-generator[0.1.46].
- martinlindhe/laravel-vue-i18n-generator 0.1.46 requires illuminate/console ~5.1.0|~5.2.0|~5.3.0|~5.4.0|~5.5.0|~5.6.0|~5.7.0|~5.8.0|~6.0|~7.0 -> found illuminate/console[v5.1.1, ..., 5.8.x-dev, v6.0.0, ..., 6.x-dev, v7.0.0, ..., 7.x-dev] but these were not loaded, likely because it conflicts with another require.
You can also try re-running composer require with an explicit version constraint, e.g. "composer require martinlindhe/laravel-vue-i18n-generator:*" to figure out if any version is installable, or "composer require martinlindhe/laravel-vue-i18n-generator:^2.1" if you know which you need.
Looks like this package is not suitable for Laravel 9 app.
Can you advice what can be used instead of it?
Thanks in advance!
Please or to participate in this conversation.