承接 blok/i18n 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

blok/i18n

最新稳定版本:1.3.1

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.7k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

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

其他信息

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