Download the PHP package bambamboole/laravel-i18next without Composer
On this page you can find all versions of the php package bambamboole/laravel-i18next. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download bambamboole/laravel-i18next
More information about bambamboole/laravel-i18next
Files in bambamboole/laravel-i18next
Package laravel-i18next
Short Description A laravel package which provides a HTTP backend for i18next.js
License MIT
Homepage https://github.com/bambamboole/laravel-i18next
Informations about the package laravel-i18next
Laravel i18next
If you are using i18next in your frontend and Laravel in your backend, this package is for you.
How does it work?
The package provides the routes to fetch the translations and to save missing translations when using i18next-http-backend.
it supports Laravels JSON and PHP translation files and converts them on the fly to be compatible with i18next.
Installation
You can install the package via composer.
Usage
The package is still in its early development and therefor pretty opinionated and not very flexible.
It provides two routes. One is for fetching the translations and the other one is for saving missing translations.
Fetching translations
The route
With Vue.js
To use the translations in your Vue.js components you can use the i18next-vue
package.
To configure i18next-vue
you can use the following code snippet:
Testing
Contributing
Ideas/Roadmap
- Add more tests
- Make the package more flexible
- Support namespaces
- Support i18next multiload
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Manuel Christlieb
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-i18next with dependencies
bambamboole/laravel-translation-dumper Version ^1.0.2
illuminate/http Version ^9.0|^10.0|^11.0
illuminate/support Version ^9.0|^10.0|^11.0
illuminate/translation Version ^9.0|^10.0|^11.0
illuminate/cache Version ^9.0|^10.0|^11.0