processmaker/laravel-i18next 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

processmaker/laravel-i18next

Composer 安装命令:

composer require processmaker/laravel-i18next

包简介

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

README 文档

README

Transform Laravel translation files into i18next compatible formats at runtime. This package provides a route for i18next to pull translations via i18next-xhr-backend

@TODO

  • 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

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.

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.

Testing

We use PHPUnit ^7.2 for unit tests on this package. You can execute the tests either by running:

composer run-script test

统计信息

  • 总下载量: 73.48k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 11
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 11
  • Watchers: 21
  • Forks: 7
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固