PHP code example of martinlindhe / laravel-vue-i18n-generator
1. Go to this page and download the library: Download martinlindhe/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/ */
martinlindhe / laravel-vue-i18n-generator example snippets
MartinLindhe\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="MartinLindhe\VueInternationalizationGenerator\GeneratorProvider"
php artisan vue-i18n:generate
php artisan vue-i18n:generate
php artisan vue-i18n:generate --multi{-locales}