snayvik/translation 问题修复 & 功能扩展

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

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

snayvik/translation

最新稳定版本:v1.0.10

Composer 安装命令:

composer require snayvik/translation

包简介

This package is useful for translation of strings in the website

README 文档

README

The simplest laravel translation based on files and database syncing. It will import all your translations from project's "lang" directory to database and from database to translation fileswith a single click.

Screenshots

App Screenshot

Installation

Install Snayvik translation using composer

  composer require snayvik/translation

Run Migration

  php artisan migrate

Configuration

To override the defualt configuration, you have to pulish the snayvik translation file into your code using :

php artisan vendor:publish --tag=snayvik-translation-config

Options :

route_prefix : Prefix for translation route. If route prefix is empty then translations page will be shown on yourdomain/translations.

route_middleware : Will be an array. The default is web and auth.

extend_blade : The blade file is using template inheritance. So you may have to change the extendable blade file. The default is 'layouts.app' which is provided by laravel itself.

content_section : The html content section where translation setting will be rendered. Default is content.

javascript_section : The translations key value data will be saved using XMLHttpRequest and using javascript.So you must have to add it. Default is js.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-07-21

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固