PHP code example of djedaini / laravel-vue-i18n-generator

1. Go to this page and download the library: Download djedaini/laravel-vue-i18n-generator library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

djedaini / laravel-vue-i18n-generator example snippets


DJEDAINI\VueInternationalizationGenerator\GeneratorProvider::class,

return [
    'hello' => 'Hello :name',
];

<div class="message">
    <p>{{ trans('message.hello', ['name' => 'visitor']) }}</p>
</div>
config/app.php

php artisan vendor:publish --provider="DJEDAINI\VueInternationalizationGenerator\GeneratorProvider"

php artisan vue-i18n:generate

php artisan vue-i18n:generate

php artisan vue-i18n:generate --multi{-locales}