Package Data | |
---|---|
Maintainer Username: | illuminate3 |
Maintainer Contact: | carsten.sapporo@gmail.com (Illuminate3) |
Package Create Date: | 2015-02-07 |
Package Last Update: | 2016-09-05 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-12-14 15:14:11 |
Package Statistics | |
---|---|
Total Downloads: | 719 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 2 |
Total Forks: | 0 |
Total Open Issues: | 0 |
言葉 |kotoba|(koh-toe-bah) noun word, language : used normally in place of the term "gengo:language" which is used more academically
Kotoba is an extension language pack for Laravel 5.x
Use illuminate3's Lingos for Laravel 4.
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.
1.0.0
1.) Add to composer.json in the require statement:
"require": {
"illuminate3/kotoba": "dev-master",
...
},
2.) Add to the app.php providers list
'Illuminate3\Kotoba\KotobaServiceProvider',
real world example:
{{ trans('kotoba::auth.register') }}
{{ Lang::get('kotoba::auth.register') }}
Break down of how it works:
{{ trans('kotoba::filename.line') }}
{{ Lang::get('kotoba::filename.line') }}
@lang('kotoba::filename.line')
Plurals
{{ 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
Result: Register
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.
Feel free to fork all you want. What would be nice if you were to add your own language to this package.