testmonitor/laravel-vue-i18n-generator

This package compiles your Laravel translation files into a Vue i18n compatible JSON file.
7,541 5
Install
composer require testmonitor/laravel-vue-i18n-generator
Latest Version:v3.1.0
PHP:^8.2
License:MIT
Last Updated:Sep 30, 2026
Links: GitHub  ·  Packagist
Maintainer: stefanius

Laravel Vue i18n Generator

Latest Stable Version CircleCI StyleCI codecov License

This package compiles your Laravel translation files into a Vue i18n compatible Javascript file.

Table of Contents

Installation

Start by installing the package using Composer:

$ composer require testmonitor/laravel-vue-i18n-generator

Optionally publish the package assets:

$ php artisan vendor:publish --provider="TestMonitor\VueI18nGenerator\VueI18nGeneratorServiceProvider" --tag="config"

You're all set up now!

Usage

When installed, use the Artisan command to generate the Vue i18n file:

$ php artisan vue:translations

This compiles your Laravel JSON and PHP language files into a single Javascript file called vue-i18n-locales.js located in /resources/js/i18n.

By default, your Laravel language path is used to determine which files to include. You can override this behavior using the path option:

$ php artisan vue:translations --path=resources/lang

There is also an option to change the output file path:

$ php artisan vue:translations --output=resources/js/i18n.js

Alternatively, you can configure output file path in the configuration file.

Changelog

Refer to CHANGELOG for more information.

Contributing

Refer to CONTRIBUTING for contributing details.

Credits

License

The MIT License (MIT). Refer to the License for more information.

Related Packages

librenms/laravel-vue-i18n-generator

Generates a vue-i18n compatible include file from your Laravel translations.

898,399 5
laraeast/laravel-vue-i18n-generator

Generates a vue-i18n compatible include file from your Laravel translations.

48,405 0
danielmlozano/laravel-vue-i18n-generator

Generates a vue-i18n compatible include file from your Laravel translations.

28,073 3
spacemudd/laravel-vue-i18n-generator

Generates a vue-i18n compatible include file from your Laravel translations.

21,807 0
testmonitor/eloquent-incrementable

Define a custom auto-increment field in your Eloquent model, that is determined...

33,391 8

Version History

Version Released PHP Laravel License
v3.1.0 ^8.2 ^11.0|^12.0|^13.0 MIT
v3.0.0 ^8.2 ^11.0|^12.0 MIT
v2.0.0 ^8.2 ^11.0 MIT
v1.0.0 ^8.1 ^10.0 MIT