nta / messages
core base messages
1.2
2021-08-16 07:05 UTC
Requires
- maatwebsite/excel: ^3.1
This package is not auto-updated.
Last update: 2024-05-27 15:55:54 UTC
README
library that provides multilingual export from specified file
Installation
Composer
require maatwebsite/excel >= ^3.1
$ composer require nta/messages
Laravel
In your config/app.php
add DevNta\Messages\NtaMessageProvider::class
to the end of the providers array:
Publish config
php artisan vendor:publish --provider="DevNta\Messages\NtaMessageProvider" --tag="config"
Other Config
Use Lang
The default configuration of 2 languages is English and Japanese, if you want to add other languages, please add languages
array of config nta_message.php
.
Set name sheet of file for import each file
'sheet' => [ 'language' => [ 'common', 'login', 'forget_password', 'reset_password', 'user_info', 'account', 'bank_account', 'gender', 'title_signboard', 'guide_signboard', 'owner', 'partner', 'message', 'modal_confirm', ], 'validation' => ['validation'] ``` ]
Url file import
if you don't want to use angular file of library, please setting path_url_file
in file config nta_message.php
Start import command
php artisan nta-message:generate
If success: The import process has been completed.
If failure: Import failed.
Publish lang
php artisan vendor:publish --provider="DevNta\Messages\NtaMessageProvider" --tag="lang"