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
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
其他信息
- 授权协议: MIT
- 更新时间: 2022-07-21