dev-master
9999999-dev https://github.com/illuminate3/kotobaBaseline language files for Laravel 5
MIT
The Requires
- php >=5.3.0
by illuminate3
laravel language i18n
Baseline language files for Laravel 5
言葉 |kotoba|(koh-toe-bah) noun word, language : used normally in place of the term "gengo:language" which is used more academically, (*1)
Kotoba is an extension language pack for Laravel 5.x, (*2)
Use illuminate3's Lingos for Laravel 4., (*3)
I have been trying to refine how the words and phrases have been laid out. I do realize that this package is English centric but with your help I'm sure that we could fix this problem., (*4)
1.0.0 * Based on the Lingos language file pack, (*5)
1.) Add to composer.json in the require statement:, (*6)
"require": { "illuminate3/kotoba": "dev-master", ... },
2.) Add to the app.php providers list, (*7)
'Illuminate3\Kotoba\KotobaServiceProvider',
real world example:, (*8)
{{ trans('kotoba::auth.register') }} {{ Lang::get('kotoba::auth.register') }}
Break down of how it works:, (*9)
{{ trans('kotoba::filename.line') }} {{ Lang::get('kotoba::filename.line') }} @lang('kotoba::filename.line')
Plurals, (*10)
{{ Lang::choice('kotoba::file.line', 1|2) }}
kotoba:: // The package name auth. // The language file name register // The phrase or word that you want to call, (*11)
Result: Register, (*12)
Note: Sometimes you have words or phrases that can fall into both the button, table and general categories. I separated these since you might want to have them slightly different, like capitalizations or similar., (*13)
illuminate3's Lingos, (*14)
Feel free to fork all you want. What would be nice if you were to add your own language to this package., (*15)
Baseline language files for Laravel 5
MIT
laravel language i18n