Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

PetroGromovo's avatar

How to add i18n support in Laravel 9/Inertiajs2/vuejs3 app ?

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!

0 likes
5 replies
PetroGromovo's avatar

@bobbybouwmann I got very similar error :

$ composer require librenms/laravel-vue-i18n-generator
Info from https://repo.packagist.org: #StandWithUkraine
Using version ^0.1.47 for librenms/laravel-vue-i18n-generator
./composer.json has been updated
Running composer update librenms/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 librenms/laravel-vue-i18n-generator ^0.1.47 -> satisfiable by librenms/laravel-vue-i18n-generator[0.1.47].
    - librenms/laravel-vue-i18n-generator 0.1.47 requires illuminate/console ^5.0|^6.0|^7.0|^8.0 -> found illuminate/console[v5.0.0, ..., 5.8.x-dev, v6.0.0, ..., 6.x-dev, v7.0.0, ..., 7.x-dev, v8.0.0, ..., 8.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 librenms/laravel-vue-i18n-generator:*" to figure out if any version is installable, or "composer require librenms/laravel-vue-i18n-generator:^2.1" if you know which you need.

looks like it is outdate too...

bobbybouwmann's avatar

@PetroGromovo This one only goes till Laravel 8. You can already see that on the packagist page if you take a quick look. The error is pretty clear!

Try the link from @sinnbeck ;)

1 like

Please or to participate in this conversation.