dev-master
9999999-devTransform Laravel localization files into i18next compatible format. Provides routes for i18next-xhr-backend.
MIT
The Development Requires
by Don Gilbert
by Taylor Dondich
Transform Laravel localization files into i18next compatible format. Provides routes for i18next-xhr-backend.
Transform Laravel translation files into i18next compatible formats at runtime. This package provides a route for i18next to pull translations via i18next-xhr-backend
, (*1)
@TODO, (*2)
views/test.blade.php
)Installation via composer is supported. Run composer require processmaker/laravel-i18next
. Once installed, you can publish the configuration via php artisan vendor:publish --tag=i18next
, (*3)
The flatten
configuration option (found in config/i18next.php
) should be set to true if you're using multidimensional arrays for your translations and NOT the Laravel String as Keys., (*4)
The exclude.groups
configuration option allows you to exclude named groups. So if you have lang/en/custom_group.php
, and want to exclude it, add custom_group
to the exclude.groups
key., (*5)
We use PHPUnit ^7.2 for unit tests on this package. You can execute the tests either by running:, (*6)
composer run-script test
, (*7)
Transform Laravel localization files into i18next compatible format. Provides routes for i18next-xhr-backend.
MIT