定制 blok/i18n 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

blok/i18n

Composer 安装命令:

composer require blok/i18n

包简介

A i18n opiniated package for Laravel

关键字:

README 文档

README

Packagist Packagist Packagist

Package description:

Simple Laravel helper to export all the languages files in a javascript file.

Installation

Install via composer

composer require blok/i18n

Register Service Provider

Note! This and next step are optional if you use laravel>=5.5 with package auto discovery feature.

Add service provider to config/app.php in providers section

Blok\I18n\I18nServiceProvider::class,

Register Facade

Register package facade in config/app.php in aliases section

'I18n' => Blok\I18n\Facades\I18n::class,

Publish Configuration File

php artisan vendor:publish --provider="Blok\I18n\I18nServiceProvider" --tag="config"

Usage

Just call :

<script src="/js/lang.js?v={$cache versionning}"></script>

And you will have a window.i18n variable available with all the localization.

Security

If you discover any security related issues, please email instead of using the issue tracker.

Credits

This package is bootstrapped with the help of blok/laravel-package-generator.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-01-15

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固