delta-solutions/translations 问题修复 & 功能扩展

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

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

delta-solutions/translations

最新稳定版本:1.2

Composer 安装命令:

composer require delta-solutions/translations

包简介

Store your spatie/laravel-translation-loader powered translations in columns instead of in a json field

README 文档

README

Translations

Latest Version on Packagist Total Downloads

Translations in columns loader

This package provides a migration and a model to extend the spatie/laravel-translation-loader so you can store your translations in columns instead of one json field. One column per locale.

Installation

You can install the package via composer:

composer require delta-solutions/translations

Follow the installation steps as explained in the Spatie docs https://github.com/spatie/laravel-translation-loader

Define the locales in the translation-loader.php config file, one locale per database column. This is used in the migration to create the database fields.

 'locales' => ['nl', 'fr', 'en', 'de', 'es']   

You can publish and run the migrations with:

php artisan vendor:publish --tag="translations-migrations"
php artisan migrate

This will create the fields in your database as specified in the locales array

example of table

Use the model from this package as the model for the spatie/laravel-translation-loader. This is configured via the model in the config. Change it to

 'model' => DeltaSolutions\Translations\Models\LanguageLine::class,

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 41
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-04-07

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固