https://github.com/shibuyakosuke/laravel-language-setting
Publish language file for Laravel
https://github.com/shibuyakosuke/laravel-language-setting
artisan-command laravel-package translation
Last synced: 11 months ago
JSON representation
Publish language file for Laravel
- Host: GitHub
- URL: https://github.com/shibuyakosuke/laravel-language-setting
- Owner: ShibuyaKosuke
- License: mit
- Created: 2020-02-19T03:04:19.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-02-17T06:06:28.000Z (about 3 years ago)
- Last Synced: 2025-04-13T02:16:56.225Z (11 months ago)
- Topics: artisan-command, laravel-package, translation
- Language: PHP
- Homepage:
- Size: 35.2 KB
- Stars: 8
- Watchers: 1
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# laravel-language-setting
## Install
```
composer require shibuyakosuke/laravel-language-setting --dev
```
## Commands
Edit `config/app.php` in your project below.
```
'locale' => 'ja',
```
## Execute command.
### Publish language files
```
php artisan lang:setting ja // If you use japanese.
```
Publish these files like belows.
- `Resources/lang/ja.json`
- `Resources/lang/ja/auth.php`
- `Resources/lang/ja/pagination.php`
- `Resources/lang/ja/passwords.php`
- `Resources/lang/ja/validation.php`
### Show languages list
```
php artisan lang:list
```
## Languages
| language | locale |
|:--------:|:--------:|
| Japanese | ja |
## Contribution
If you have other language files, clone this repository and add your language files.
Send me pull request, please.