2017 © Pedro Peláez
 

library laravel-i18next

Transform Laravel localization files into i18next compatible format. Provides routes for i18next-xhr-backend.

image

processmaker/laravel-i18next

Transform Laravel localization files into i18next compatible format. Provides routes for i18next-xhr-backend.

  • Thursday, July 19, 2018
  • by processmaker
  • Repository
  • 1 Watchers
  • 1 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

laravel-i18next

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)

  • Add example on implementing in a react app (beyond the views/test.blade.php)

Installation

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)

Testing

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)

The Versions

19/07 2018

dev-master

9999999-dev

Transform Laravel localization files into i18next compatible format. Provides routes for i18next-xhr-backend.

  Sources   Download

MIT

The Development Requires

by Taylor Dondich